19 #include "vlutil/vlTime.h"
46 const DtString& rwName = DtString::nullString(),
50 const DtString& rwName = DtString::nullString(),
59 const DtString& rwName = DtString::nullString(),
72 virtual void removePendingDetonation(
const DtString& eventId);
75 virtual void setFiringCycleCompleteTime(
DtTime completeTime);
78 virtual DtTime timeFiringCycleComplete()
const;
86 virtual void setCommandedToFire();
87 virtual bool isCommandedToFire();
89 virtual void setHasFired();
90 virtual bool hasFired();
99 virtual void setNextFireEventTime(
const double time);
100 virtual double nextFireEventTime()
const;
105 virtual void setBurstRoundsRemaining(
const int rounds);
106 virtual int burstRoundsRemaining()
const;
111 virtual void setDisplayName(
const DtString& displayName);
112 virtual const DtString displayName()
const;
116 virtual void setFiringTracers();
117 virtual void setNotFiringTracers();
118 virtual bool isFiringTracers()
const;
119 virtual bool isFiringTracersSpecified()
const;
124 virtual DtArtPartType gunArtPart()
const;
125 virtual void setGunArtPart(DtArtPartType gunArtPart);
DtDetonationDescriptorList myPendingDetonations
List of DtDetonationDescriptors, used to save/restore information about pending scheduled detonations...
Definition: vrfBalGunPSR.h:151
DtRwBoolean myFiringTracers
A flag that indicates if the gun is firing tracer rounds (mixed with ball)
Definition: vrfBalGunPSR.h:190
Definition: vrfBalGunPSR.h:23
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
File: weaponPSR.h.
Definition: vrfWeaponPSR.h:31
int myGunArtPart
The art part number for the gun we're associated with.
Definition: vrfBalGunPSR.h:195
DtRwReal myNextFireEventTime
State variables for bursts with multiple detonations. These are used if the number of rounds-per-deto...
Definition: vrfBalGunPSR.h:181
Instances of DtDetonationDescriptorList are readable/writable lists of DtDetonationDescriptors.
Definition: detonationDescriptorList.h:18
DtRwInt myBurstRoundsRemaining
The number of rounds left in the burst, yet to process in fire events.
Definition: vrfBalGunPSR.h:184
DtLineOfSightState
File: balGunPSR.h.
Definition: vrfBalGunPSR.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
FireState
State describing the gun. We could add more physical gun states here such as "jammed.".
Definition: vrfBalGunPSR.h:155
static DtVrfProcessStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
Create an instance of a DtVrfWeaponPSR.
class DtDetonationDescriptor:
Definition: detonationDescriptor.h:33
DtRwString myDisplayName
Definition: vrfBalGunPSR.h:187
Description: Readable, Writable int.
Definition: rwInt.h:25
Definition: vrfBalGunPSR.h:24
Definition: vrfBalGunPSR.h:25
DtBaseWeaponComponentInterface * myWeaponInterface
The weapon control interface for this gun, if it exists. This is set during postAddComponentsInit by ...
Definition: vrfBalGunPSR.h:199
const DtVrfWeaponPSR & operator=(const DtVrfWeaponPSR &orig)
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const override
Returns the string type of the repository, as defined in procSRTypes.h.
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
DtRwInt myFireState
State describing the gun; for communication between the controller and actuator. The controller sets ...
Definition: vrfBalGunPSR.h:167
Abstract base class for all psrs that will serve as an interface between a controlling component on t...
Definition: baseWeaponComponentInterface.h:28
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=nullptr) const override
Definition: vrfBalGunPSR.h:157
Class DtVrfBalGunPSR: Used to hold checkpointable state for the processes associated with ballistic g...
Definition: vrfBalGunPSR.h:36
DtRwReal myFireCycleCompleteTime
The time at which the gun firing cycle is complete. Set by the gun actuator component to inform the g...
Definition: vrfBalGunPSR.h:173
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