![]() |
VR-Forces 4.1.1 Class Documentation
|
Represents the interface between the DtTargetSelectionController and a weapon system. More...

Public Types | |
| enum | DtWeaponStatus { DT_OK_TO_FIRE = 0, DT_WEAPON_DISABLED = 1, DT_NO_AMMUNITION_FOR_TARGET = 2, DT_CANNOT_ACQUIRE_TARGET = 4 } |
Public Member Functions | |
| DtWeaponComponentInterface (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtWeaponComponentInterface (const DtWeaponComponentInterface &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| const DtWeaponComponentInterface & | operator= (const DtWeaponComponentInterface &orig) |
| virtual | ~DtWeaponComponentInterface () |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| virtual DtString | type () const |
| Returns the string type of the repository, as defined in procSRTypes.h. | |
| virtual void | updateRegionEvaluator () |
| This must be called before calling locationWithinRegion() if the host entity has moved at all since this was last called. | |
| virtual bool | locationWithinRegion (const DtVector &localLocation) const |
| virtual void | setTarget (const DtEntityTargetInformation &target) |
| virtual const DtEntityTargetInformation & | target () const |
| virtual void | setRoundsFiredUponTarget (const int &roundsFired) |
| Accessor/mutator for myRoundsFiredUponTarget. | |
| virtual const int | roundsFiredUponTarget () const |
| virtual void | setTotalRoundsToFireUponTarget (const int &totalRoundsToFire) |
| Accessor/mutator for myTotalRoundsToFireUponTarget. | |
| virtual const int | totalRoundsToFireUponTarget () const |
| virtual void | setTargetSelectionCriteria (const DtTargetSelectionCriteria &tsc) |
| Accessor/mutator for myTargetSelectionCriteria. | |
| virtual const DtTargetSelectionCriteria & | targetSelectionCriteria () const |
| Accessor/mutator for myTargetSelectionCriteria. | |
| virtual void | setIsExplicitlyTasked (const bool &explicitlyTasked) |
| Accessor/mutator for myIsExplicitlyTasked. | |
| virtual const bool | isExplicitlyTasked () const |
| Accessor/mutator for myIsExplicitlyTasked. | |
| virtual void | setAllowExplicitTasking (const bool &includeInDialogs) |
| Accessor/mutator for myAllowExplicitTasking. | |
| virtual const bool | allowExplicitTasking () const |
| Accessor/mutator for myAllowExplicitTasking. | |
| virtual void | setDisplayName (const DtString &displayName) |
| Accessor/mutator for myDisplayName. | |
| virtual const DtString | displayName () const |
| Accessor/mutator for myDisplayName. | |
| virtual void | setWeaponStatus (const int weaponStatus) |
| Accessor/mutator for myWeaponStatus. | |
| virtual const int | weaponStatus () const |
| Accessor/mutator for myWeaponStatus. | |
| virtual void | clearTarget () |
| Accessor/mutator for myTarget. | |
| virtual bool | hasTarget () const |
| Accessor/mutator for myTarget. | |
Public Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtVrfProcessStateRepository (const DtVrfProcessStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| const DtVrfProcessStateRepository & | operator= (const DtVrfProcessStateRepository &orig) |
| virtual | ~DtVrfProcessStateRepository () |
| virtual bool | init () |
| Used for virtual construction. This base method simply returns true. | |
| virtual bool | loadedFromMTL () const |
| virtual void | getSelf (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Top level to read itself from an input stream. | |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| default constructor | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| real constructor Setting the readonly flag prevents object from writing itself to the stream. | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| assignment operator | |
| virtual | ~DtReaderWriter () |
| destructor | |
| virtual void | putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Top level call to write itself to file. | |
| virtual void | writeSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. | |
| virtual DtSymbolString | name () const |
| Accessor for name of this readable/writable object. | |
| virtual void | addAlias (const DtSymbolString &alias) |
| Add an alias as an alternative name for this object. | |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| Set read-only flag. | |
| virtual bool | isReadonly () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| Sets the myVariableIsBound flag to false. | |
| virtual void | setName (const DtString &) |
| Set the name of the object. | |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
| virtual DtString | prettyPrint () const |
| Routine to return a human readable form of the reader/writer variable. | |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| Runs a variable binding pass on this reader writer and any of its children. | |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| Returns true if this variable has a child p in it's chain. | |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| The specified flags are used for optional values. | |
| virtual bool | valueSpecified () const |
| The specified flags are used for optional values. | |
| virtual bool | isVariableReference () const |
| Specifies whether or not this reader writer is really a variable that is specified elsewhere. | |
| virtual void | setIsVariableReference (bool value) |
| virtual DtSymbolString | variableName () const |
| The variable name, if this object is a variable reference. | |
| virtual void | setVariableName (const DtSymbolString variableName) |
| The variable name, if this object is a variable reference. | |
| const DtReaderWriterRegistry & | registry () const |
| Collection of child DtReaderWriter nodes owned by this object. | |
| DtReaderWriterRegistry & | registry () |
| Collection of child DtReaderWriter nodes owned by this object. | |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &name, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
| Create an instance of a DtLasingControllerPSR. | |
Static Public Member Functions inherited from DtVrfProcessStateRepository | |
| static DtVrfProcessStateRepositoryFactory * | factory () |
| a DtVrfProcessStateRepositoryFactory is allocated by the DtSimCreator, and this pointer is set. | |
| static void | setFactory (DtVrfProcessStateRepositoryFactory *factory) |
| static void | addVrfProcessStateRepositoryCreatorFcn (const DtString &type, DtVrfProcessStateRepositoryCreatorFcn fcn) |
| static DtVrfProcessStateRepository * | createRepository (const DtString &name, const DtString &type, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry=0) |
| Creates a new state repository object, using the factory. | |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (FILE *fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
Protected Member Functions | |
| virtual void | setupRegionEvaluator () |
| Uses the current data in myTargetSelectionCriteria and creates the and sets myRegionEvaluator, is applicable. | |
Protected Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository () | |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
| Copies values from the specified DtReaderWriter. | |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| Checks to see if this RW object is a variable reference that can be bound using the provided bindings. | |
| virtual void | putData (FILE *fp, int indentLevel=0) |
| Deriving class overrides these to get/put class specific data. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Deriving class overrides these to get/put class specific data. | |
Protected Attributes | |
| DtTargetSelectionCriteria | myTargetSelectionCriteria |
| Target selection data for this weapon. | |
| DtEntityTargetInformation | myTarget |
| Information about current target. | |
| DtSpatialFilterEvaluator * | myRegionEvaluator |
| DtRwInt | myRoundsFiredUponTarget |
| Tracks rounds fired upon current target. | |
| DtRwInt | myTotalRoundsToFireUponTarget |
| Tracks total rounds to fire upon current target. | |
| DtRwBoolean | myIsExplicitlyTasked |
| Tracks whether the weapon system has been explicitly tasked as opposed to a target being automatically selected. | |
| DtRwBoolean | myAllowExplicitTasking |
| DtRwString | myDisplayName |
| Name to be used in the gui to represent this weapon. | |
| DtVrfObject * | myHostObject |
| DtVrfObject the weapon is attached to. | |
| DtRwInt | myWeaponStatus |
Protected Attributes inherited from DtVrfProcessStateRepository | |
| DtVrfObject * | myVrfObject |
| bool | myLoadedFromMTL |
Protected Attributes inherited from DtReaderWriter | |
| const DtSymbolString | myName |
| DtReaderWriterRegistry | myRegistry |
| bool | myValueSpecified |
| bool | myReadOnlyFlag |
| bool | myIsVariableReference |
| DtSymbolString | myVariableName |
| bool | myVariableIsBound |
| aliasContainer | myAliases |
| Container for the aliases which represent alternative names for the object. | |
| bool | myInvalid |
| Set to true if there is a problem reading this item. | |
Private Member Functions | |
| DtWeaponComponentInterface () | |
| default constructor, not implemented | |
Additional Inherited Members | |
Static Protected Attributes inherited from DtVrfProcessStateRepository | |
| static DtVrfProcessStateRepositoryFactory * | theFactory |
Represents the interface between the DtTargetSelectionController and a weapon system.
|
private |
default constructor, not implemented
| DtWeaponComponentInterface::DtWeaponComponentInterface | ( | DtVrfObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
| DtWeaponComponentInterface::DtWeaponComponentInterface | ( | const DtWeaponComponentInterface & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
|
virtual |
| const DtWeaponComponentInterface& DtWeaponComponentInterface::operator= | ( | const DtWeaponComponentInterface & | orig | ) |
|
virtual |
Implements DtVrfProcessStateRepository.
|
virtual |
Returns the string type of the repository, as defined in procSRTypes.h.
Implements DtVrfProcessStateRepository.
|
virtual |
Accessor/mutator for myTargetSelectionCriteria.
|
virtual |
Accessor/mutator for myTargetSelectionCriteria.
|
virtual |
This must be called before calling locationWithinRegion() if the host entity has moved at all since this was last called.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Accessor/mutator for myRoundsFiredUponTarget.
|
virtual |
|
virtual |
Accessor/mutator for myTotalRoundsToFireUponTarget.
|
virtual |
|
virtual |
Accessor/mutator for myIsExplicitlyTasked.
|
virtual |
Accessor/mutator for myIsExplicitlyTasked.
|
virtual |
Accessor/mutator for myAllowExplicitTasking.
|
virtual |
Accessor/mutator for myAllowExplicitTasking.
|
virtual |
Accessor/mutator for myDisplayName.
|
virtual |
Accessor/mutator for myDisplayName.
|
virtual |
Accessor/mutator for myWeaponStatus.
|
virtual |
Accessor/mutator for myWeaponStatus.
|
virtual |
Accessor/mutator for myTarget.
|
static |
Create an instance of a DtLasingControllerPSR.
|
protectedvirtual |
Uses the current data in myTargetSelectionCriteria and creates the and sets myRegionEvaluator, is applicable.
|
protected |
Target selection data for this weapon.
|
protected |
Information about current target.
|
protected |
|
protected |
Tracks rounds fired upon current target.
|
protected |
Tracks total rounds to fire upon current target.
|
protected |
Tracks whether the weapon system has been explicitly tasked as opposed to a target being automatically selected.
|
protected |
|
protected |
Name to be used in the gui to represent this weapon.
|
protected |
DtVrfObject the weapon is attached to.
|
protected |