VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileFlightPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrfobjcore/simObject.h"
13 #include <vlutil/vlTime.h>
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwReal.h>
16 #include "readerWriter/rwVector.h"
17 #include <readerWriter/rwString.h>
18 #include <readerWriter/rwInt.h>
20 
21 
23 {
26 };
27 
29 
36 
39 {
40 public:
41 
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
53  virtual ~DtMissileFlightPSR();
54 
57 
60  const DtString& rwName = DtString::nullString(),
61  DtReaderWriterRegistry* parentRegistry = 0) const;
62 
65  virtual DtString type() const;
66 
68  virtual void setMaxBurnTime(DtTime seconds);
69  virtual DtTime maxBurnTime() const;
70 
72  virtual void setMaxBurnTimeSet(bool flag);
73  virtual bool maxBurnTimeSet() const;
74 
76  virtual void setCurrentBurnTime(DtTime seconds);
77  virtual DtTime currentBurnTime() const;
78 
80  virtual void setTargetPoint(const DtVector& targetPoint);
81  virtual const DtVector& targetPoint() const;
82 
84  virtual bool isMissileTargetted() const;
85 
87  virtual void setTargetVelocity(const DtVector& velocity);
88  virtual const DtVector& targetVelocity() const;
89 
92  virtual void setTarget(const DtUUID& target);
93 
95  virtual DtSimObjectReference target() const;
96 
99  virtual void setLaunchPhase(DtMissileLaunchPhase phase);
100  virtual DtMissileLaunchPhase launchPhase() const;
101 
102 public:
103 
105  static DtVrfProcessStateRepository* creator (const DtString& rwName,
106  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
107 
108 protected:
109 
113 
116 
119 
122 
126 
129 
132 
135 
141 
147 
148 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwReal myMaxBurnTime
Maximum burn time (range/maximum speed, in seconds).
Definition: missileFlightPSR.h:118
Definition: missileFlightPSR.h:24
DtRwReal myCurrentBurnTime
Current burn time remaining (in seconds).
Definition: missileFlightPSR.h:121
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwInt myLaunchPhase
Launch phase. Starts at one for simple target acquisition navigation, then gets set to two to begin p...
Definition: missileFlightPSR.h:146
DtRwSimObjectReference myTarget
Moved here from DtMissileTrackEntityController.
Definition: missileFlightPSR.h:140
Definition: readerWriterRegistry.h:39
DtMissileLaunchPhaseEnum
Definition: missileFlightPSR.h:22
Definition: rwVector.h:23
DtRwVector myTargetPoint
Moved here from DtMissileMoveToControllerComponent (msslMvToCntlr.h)
Definition: missileFlightPSR.h:128
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
DtRwBoolean myIsMissileTargetted
Flag indicating whether missile has a designated target.
Definition: missileFlightPSR.h:134
Definition: missileFlightPSR.h:25
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
class DtMissileFlightPSR:
Definition: missileFlightPSR.h:38
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtMissileLaunchPhaseEnum DtMissileLaunchPhase
Definition: missileFlightPSR.h:28
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwBoolean myMaxBurnTimeSet
Moved here from DtMissileManeuverActComponent (msslManeuvAct.h)
Definition: missileFlightPSR.h:115
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwVector myTargetVelocity
Target velocity (meters/seconds, database coordinates)
Definition: missileFlightPSR.h:131
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
File: rwVector.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)