VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)