41 const DtString& rwName = DtString::nullString(),
45 const DtString& rwName = DtString::nullString(),
54 const DtString& rwName = DtString::nullString(),
63 virtual void setUserTargetOverride(
bool userTargetOverride);
64 virtual bool userTargetOverride()
const;
68 virtual void setCurrentTarget(
const DtUUID&,
69 bool targetOverride =
false);
77 virtual void setCurrentLocationTarget(
const DtVector& locationTarget,
78 bool targetOverride =
false);
81 virtual DtVector currentLocationTarget()
const;
88 virtual void setCurrentMunitionName(
const DtString& currentMunitionName);
90 virtual const DtString& currentMunitionName()
const;
93 virtual bool targetAcquired()
const;
94 virtual void setTargetAcquired(
bool targetAcquired);
97 virtual bool weaponAimed()
const;
98 virtual void setWeaponAimed(
bool aimed);
106 virtual void addActiveMissile(
const DtUUID&);
107 virtual void removeActiveMissile(
const DtUUID&);
110 virtual bool stillTargeting(
const DtUUID&)
const;
115 virtual void setRoundsFiredUponTarget(
const int& roundsFired);
116 virtual const int roundsFiredUponTarget()
const;
121 virtual void setIsExplicitlyTasked(
const bool& explicitlyTasked);
122 virtual const bool isExplicitlyTasked()
const;
127 virtual void setIsInFiringCycle(
const bool);
128 virtual bool isInFiringCycle()
const;
133 virtual void setWeaponStatus(
const int weaponStatus);
134 virtual const int weaponStatus()
const;
148 virtual void setWeaponStowed(
bool v);
149 virtual bool weaponStowed()
const;
153 virtual void setWorkingTargetPoint(
const DtUUID&
id);
159 virtual void missileRemoved(
const DtUUID&);
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwSimObjectReferenceList myActiveMissiles
Definition: vrfWeaponPSR.h:171
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: simObjectReferenceList.h:118
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwInt myWeaponStatus
Current status of the weapon, is it able to fire or not. This value is a bit field composed of the va...
Definition: vrfWeaponPSR.h:189
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwSimObjectReference myWorkingTargetPoint
Definition: vrfWeaponPSR.h:193
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
File: weaponPSR.h.
Definition: vrfWeaponPSR.h:31
DtVrfMunitionLoader myMunitionLoader
Definition: vrfWeaponPSR.h:169
DtRwBoolean myWeaponAimed
Definition: vrfWeaponPSR.h:170
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwSimObjectReference myCurrentTarget
Definition: vrfWeaponPSR.h:164
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwBoolean myIsInFiringCycle
Indicates that the weapon is in its firing cycle, which may mean is still firing a burst...
Definition: vrfWeaponPSR.h:184
DtRwNLengthUUIDVector myMissileFireOrder
Definition: vrfWeaponPSR.h:172
Class DtVrfMunitionLoader:
Definition: vrfMunitionLoader.h:22
DtWeaponStatus
The status items below are used as bit fields. To set a state, OR the enumerated value into the weapo...
Definition: baseWeaponComponentInterface.h:34
DtRwBoolean myTargetAcquired
Definition: vrfWeaponPSR.h:163
DtRwNLengthUUIDVector is a named, readable/writable vector of DtUUIDs. Can be used in place of a NLen...
Definition: rwNLengthUUIDVector.h:30
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 myCurrentLocationTarget
Definition: vrfWeaponPSR.h:165
DtRwBoolean myWeaponStowed
Definition: vrfWeaponPSR.h:191
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwString myCurrentMunitionName
Definition: vrfWeaponPSR.h:167
DtRwBoolean myUserTargetOverride
Definition: vrfWeaponPSR.h:166
DtRwBoolean myIsExplicitlyTasked
Tracks whether the weapon system has been explicitly tasked as opposed to a target being automaticall...
Definition: vrfWeaponPSR.h:179
DtRwInt myRoundsFiredUponTarget
Tracks rounds fired upon current target.
Definition: vrfWeaponPSR.h:175
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
boost::signals2::connection myActiveMissilesListConnection
Definition: vrfWeaponPSR.h:195