VR-Forces Developer's Guide
 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 
12 
14 class DtMissileTargetControllerComponentDescriptor;
16 
20 {
21 private:
22  //Not Implemented.
24  //Not Implemented.
26  //Not Implemented.
28 
29 public:
30 
31  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
32  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
34  DtLocalObject* owner,
35  DtSimulationServices* simManager,
36  DtComponentDescriptor* desc = NULL,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
39  virtual ~DtMissileTargetController() override;
40 
41  //Initial setup of component after creation.
42  virtual bool init() override;
43 
44  //Creates the process state repository for this component.
45  virtual bool createPSR();
46 
47  //\copydoc DtSimComponent::type()
48  //\return DtTurnAndMoveControllerType.
49  virtual const char* type() const override;
50 
51  //Main processing for component.
52  virtual void tick() override;
53 
54 protected:
55 
57  virtual double launchTime() const;
58 
61  virtual double initialLaunchTime() const;
62 
64  virtual double moveOutHeading() const;
65 
67  virtual std::string scriptedMovementObject() const;
68 
69  virtual void preFirstTickInit() override;
70 
71 public:
72 
73  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
74  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
75  //\return New instance of this class.
76  static DtSimComponent * creator(const DtString& name,
77  DtLocalObject* owner,
78  DtSimulationServices* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
84  virtual void createObjectForPhase(int phase);
85 
87  virtual DtTaitBryan launchOrientation(const DtScriptedMovementPhase& phase) const;
88 
90  virtual void setup();
91 
92 protected:
95  bool myValid;
98 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtMissileTargetControllerPSR * myProcessState
Definition: missileTargetController.h:93
DtScriptedMovementObject myScriptedMovementObject
Definition: missileTargetController.h:94
DtTacticalGraphicLocalObjectFacade myTacticalGraphicLocalObjectFacade
Definition: missileTargetController.h:97
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
bool myValid
Definition: missileTargetController.h:95
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:22
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: missileTargetControllerPSR.h:17
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
The DtMissileTargetController will wait until the specified simulation time to launch a missile to fo...
Definition: missileTargetController.h:19
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
bool myNeedsSetup
Definition: missileTargetController.h:96
The DtDetonationContext contains all the information necessary for processing a Detonation Interactio...
Definition: detonationContext.h:23
DtScriptedMovementObject class is a container that describes a scripted movement file and phases for ...
Definition: scriptedMovementObject.h:192
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
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:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)