VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileTrackEntityController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 
13 #pragma once
14 
16 
17 #include <vlutil/vlString.h>
18 #include <matrix/vlVector.h>
20 
21 class DtSimManager;
22 class DtSimMessage;
23 
24 
36 {
37 
38 public:
39 
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
50 
53  virtual const char* type() const;
54 
57  virtual void setTargetEntity(const DtUUID& entity);
58  virtual const DtVrfObject* targetEntity() const;
59 
62  virtual DtMissileLaunchPhase launchPhase() const;
63  virtual void setLaunchPhase(DtMissileLaunchPhase phase);
64 
67  virtual void calculateSteering(const DtVector &relativeVelocity,
68  const DtVector &localPosition,
69  const DtVector &targetVelocity,
70  const DtVector &targetPoint,
71  double& maneuverAccelXOut,
72  double& maneuverAccelYOut,
73  double& maneuverAccelZOut);
74 
78  static void targetEntityCallback(DtSimMessage * msg, void * usr);
79 
82  virtual void processTargetEntityTask(DtSimMessage * msg);
83 
87  static DtSimComponent * creator(const DtString& name,
88  DtVrfObject* owner,
89  DtSimManager* simManager,
90  DtComponentDescriptor* desc = 0,
91  DtReaderWriterRegistry* parentRegistry = 0);
92 
93 protected:
97 
100  orig);
101 
105 
108  virtual void registerTaskMsgCallbacks();
109 
118  virtual bool setupControlPoint();
119 
121  virtual double findDesiredSpeed();
122 
123 protected:
124 
127 
129 };
130 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
Overrides this so it can register its interest in MoveTo commands.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtMissileMoveToControllerComponent & operator=(const DtMissileMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
virtual double findDesiredSpeed()
Returns the maximum speed for the missile.
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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: readerWriterRegistry.h:39
DtMissileLaunchPhaseEnum
Definition: missileFlightPSR.h:21
virtual void calculateSteering(const DtVector &relativeVelocity, const DtVector &localPosition, const DtVector &targetVelocity, const DtVector &targetPoint, double &maneuverAccelXOut, double &maneuverAccelYOut, double &maneuverAccelZOut)
Just calls down to calculateSteeringToPoint (ignoring targetVelocity).
const DtVrfObject * myEntityPointer
Set fresh each frame by setupControlPoint.
Definition: missileTrackEntityController.h:126
DtMissileMoveToControllerComponent is a controller that maneuvers a missile toward a given target poi...
Definition: missileMoveToControllerComponent.h:35
File: simMsg.h.
Definition: simMessage.h:35
virtual bool setupControlPoint()
Returns the boolean member data flag myMissilesTargeted, indicating whether or not a target location ...
virtual const char * type() const
Returns a string identifies the class type of component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtMissileTrackEntityController is a controller that models entity tracking behavior for missile entit...
Definition: missileTrackEntityController.h:35
bool myLookupWarningSent
Definition: missileTrackEntityController.h:128

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)