18 #include "vlpi/disEnums.h"
19 #include "vlpi/entityType.h"
39 DT_WEAPON_DISABLED = 1,
40 DT_NO_AMMUNITION_FOR_TARGET = 2,
41 DT_CANNOT_ACQUIRE_TARGET = 4,
43 DT_OUT_OF_AMMUNITION_FOR_WEAPON = 16,
45 DT_CANNOT_ARTICULATE_TO_TARGET = 64
56 const DtString& rwName = DtString::nullString(),
61 const DtString& rwName = DtString::nullString(),
77 virtual void updateRegionEvaluator() = 0;
83 virtual bool locationWithinRegion(
const DtVector& localLocation)
const = 0;
86 virtual void setRoundsFiredUponTarget(
const int& roundsFired);
87 virtual const int roundsFiredUponTarget()
const;
90 virtual void setTotalRoundsToFireUponTarget(
const int& totalRoundsToFire);
91 virtual const int totalRoundsToFireUponTarget()
const;
95 virtual void setIsExplicitlyTasked(
const bool& explicitlyTasked);
96 virtual const bool isExplicitlyTasked()
const;
101 virtual void setAllowExplicitTasking(
const bool& includeInDialogs);
102 virtual const bool allowExplicitTasking()
const;
107 virtual void setDisplayName(
const DtString& displayName);
108 virtual const DtString& displayName()
const;
113 virtual void setWeaponStatus(
const int weaponStatus);
114 virtual const int weaponStatus()
const;
117 virtual DtString weaponStatusString()
const;
121 virtual const DtString& statusReason(DtWeaponStatus status)
const;
122 virtual void setStatusReason(DtWeaponStatus status,
const DtString& reason);
127 virtual void addWeaponStatus(
const DtWeaponStatus weaponStatus);
133 virtual void removeWeaponStatus(
const DtWeaponStatus weaponStatus);
138 virtual void setIsInFiringCycle(
const bool);
139 virtual bool isInFiringCycle()
const;
144 virtual void setDesiredAmmunition(
const std::list<DtEntityType>& list);
145 virtual const std::list<DtEntityType>& desiredAmmunition()
const;
146 virtual std::list<DtEntityType>& desiredAmmunition();
159 virtual void createMountPartList(
const DtArtPartType partType);
161 virtual const std::list<DtArtPartType>& mountPartList()
const;
166 virtual void setSystemTurretNumber(
const DtArtPartType num);
167 virtual DtArtPartType systemTurretNumber()
const;
174 virtual std::set<DtString>& requiredTokens();
175 virtual void setRequiredTokens(
const std::set<DtString>& tokens);
180 virtual void setControlExternalTurret(
bool c);
181 virtual bool controlExternalTurret()
const;
std::set< DtString > myRequiredTokens
List of resources required to operate the weapon; these are tokens that are reserved when the weapon ...
Definition: baseWeaponComponentInterface.h:247
DtRwBoolean myIsExplicitlyTasked
Tracks whether the weapon system has been explicitly tasked as opposed to a target being automaticall...
Definition: baseWeaponComponentInterface.h:198
std::map< int, DtString > myStatusReasons
Human-readable reasons supplementing myWeaponStatus, keyed by status bit. Not checkpointed – reset ea...
Definition: baseWeaponComponentInterface.h:212
DtRwBoolean myControlExternalTurret
Indicates that this weapon is controlling parent parts outside of the system to turn the gun...
Definition: baseWeaponComponentInterface.h:240
DtRwInt myRoundsFiredUponTarget
Tracks rounds fired upon current target.
Definition: baseWeaponComponentInterface.h:186
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtArtPartType mySystemTurretNumber
The articulated part corresponding to the turret in this gun system (as opposed to an ancestor part)...
Definition: baseWeaponComponentInterface.h:234
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
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: baseWeaponComponentInterface.h:208
std::list< DtArtPartType > myMountPartList
A list of articulated parts to which this weapon is attached. That is, its parent part...
Definition: baseWeaponComponentInterface.h:230
DtWeaponStatus
The status items below are used as bit fields. To set a state, OR the enumerated value into the weapo...
Definition: baseWeaponComponentInterface.h:36
DtRwBoolean myAllowExplicitTasking
Definition: baseWeaponComponentInterface.h:200
std::list< DtEntityType > myDesiredAmmunition
List of the available munition resources. This is not written out since it gets updated from the syst...
Definition: baseWeaponComponentInterface.h:219
DtRwString myDisplayName
Name to be used in the gui to represent this weapon.
Definition: baseWeaponComponentInterface.h:203
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
Abstract base class for all psrs that will serve as an interface between a controlling component on t...
Definition: baseWeaponComponentInterface.h:30
DtRwBoolean myIsInFiringCycle
Indicates that the weapon is in its firing cycle, which may mean is still firing a burst...
Definition: baseWeaponComponentInterface.h:194
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98
DtRwInt myTotalRoundsToFireUponTarget
Tracks total rounds to fire upon current target.
Definition: baseWeaponComponentInterface.h:189