19 #include "vlutil/vlTime.h"
46 const DtString& rwName = DtString::nullString(),
50 const DtString& rwName = DtString::nullString(),
71 virtual void removePendingDetonation(
const DtString& eventId);
74 virtual void setFiringCycleCompleteTime(
DtTime completeTime);
77 virtual DtTime timeFiringCycleComplete()
const;
85 virtual void setCommandedToFire();
86 virtual bool isCommandedToFire();
88 virtual void setHasFired();
89 virtual bool hasFired();
98 virtual void setNextFireEventTime(
const double time);
99 virtual double nextFireEventTime()
const;
104 virtual void setBurstRoundsRemaining(
const int rounds);
105 virtual int burstRoundsRemaining()
const;
110 virtual void setDisplayName(
const DtString& displayName);
111 virtual const DtString displayName()
const;
115 virtual void setFiringTracers();
116 virtual void setNotFiringTracers();
117 virtual bool isFiringTracers()
const;
118 virtual bool isFiringTracersSpecified()
const;
123 virtual DtArtPartType gunArtPart()
const;
124 virtual void setGunArtPart(DtArtPartType gunArtPart);
DtDetonationDescriptorList myPendingDetonations
List of DtDetonationDescriptors, used to save/restore information about pending scheduled detonations...
Definition: vrfBalGunPSR.h:150
DtRwBoolean myFiringTracers
A flag that indicates if the gun is firing tracer rounds (mixed with ball)
Definition: vrfBalGunPSR.h:189
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:32
int myGunArtPart
The art part number for the gun we're associated with.
Definition: vrfBalGunPSR.h:194
DtRwReal myNextFireEventTime
State variables for bursts with multiple detonations. These are used if the number of rounds-per-deto...
Definition: vrfBalGunPSR.h:180
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:183
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:154
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:186
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:198
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 psrTypes.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:166
Abstract base class for all psrs that will serve as an interface between a controlling component on t...
Definition: baseWeaponComponentInterface.h:29
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=nullptr) const override
Definition: vrfBalGunPSR.h:156
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:172
A locally simulated VRF object.
Definition: localObject.h:98