VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileTargetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 class DtMissileTargetControllerComponentDescriptor;
15 
19 {
20 private:
21  //Not Implemented.
23  //Not Implemented.
25  //Not Implemented.
27 
28 public:
29 
30  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
31  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
33  DtVrfObject* owner,
34  DtSimManager* simManager,
35  DtComponentDescriptor* desc = NULL,
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
38  virtual ~DtMissileTargetController();
39 
40  //Initial setup of component after creation.
41  virtual bool init();
42 
43  //Creates the process state repository for this component.
44  virtual bool createPSR();
45 
46  //\copydoc DtSimComponent::type()
47  //\return DtTurnAndMoveControllerType.
48  virtual const char* type() const;
49 
50  //Main processing for component.
51  virtual void tick();
52 
53 protected:
54 
56  virtual double launchTime() const;
57 
60  virtual double initialLaunchTime() const;
61 
63  virtual double moveOutHeading() const;
64 
66  virtual std::string scriptedMovementObject() const;
67 
68  virtual void preFirstTickInit();
69 
70 public:
71 
72  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
73  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
74  //\return New instance of this class.
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
83  virtual void createObjectForPhase(int phase);
84 
86  virtual DtTaitBryan launchOrientation(const DtScriptedMovementPhase& phase) const;
87 
89  virtual void setup();
90 
91 protected:
94  bool myValid;
96 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtMissileTargetControllerPSR * myProcessState
Definition: missileTargetController.h:92
DtScriptedMovementObject myScriptedMovementObject
Definition: missileTargetController.h:93
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
bool myValid
Definition: missileTargetController.h:94
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: missileTargetControllerPSR.h:17
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
The DtMissileTargetController will wait until the specified simulation time to launch a missile to fo...
Definition: missileTargetController.h:18
virtual void tick()
This gives the thread of control to the component.
bool myNeedsSetup
Definition: missileTargetController.h:95
The DtDetonationContext contains all the information necessary for processing a Detonation Interactio...
Definition: detonationContext.h:27
DtScriptedMovementObject class is a container that describes a scripted movement file and phases for ...
Definition: scriptedMovementObject.h:192
The DtScriptedMovementObject will contain information about an object that can be used for scripted m...
Definition: scriptedMovementObject.h:38
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)