VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtWeaponComponentInterface Class Reference

Represents the interface between the DtTargetSelectionController and a weapon system. More...

Inheritance diagram for DtWeaponComponentInterface:
Inheritance graph
[legend]

List of all members.

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 DtWeaponComponentInterfaceoperator= (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.

Static Public Member Functions

static
DtVrfProcessStateRepository
creator (const DtString &name, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
 Create an instance of a DtLasingControllerPSR.

Protected Member Functions

virtual void setupRegionEvaluator ()
 Uses the current data in myTargetSelectionCriteria and creates the and sets myRegionEvaluator, is applicable.

Protected Attributes

DtTargetSelectionCriteria myTargetSelectionCriteria
 Target selection data for this weapon.
DtEntityTargetInformation myTarget
 Information about current target.
DtSpatialFilterEvaluatormyRegionEvaluator
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.
DtVrfObjectmyHostObject
 DtVrfObject the weapon is attached to.
DtRwInt myWeaponStatus

Private Member Functions

 DtWeaponComponentInterface ()
 default constructor, not implemented

Detailed Description

Represents the interface between the DtTargetSelectionController and a weapon system.


Member Enumeration Documentation

Enumerator:
DT_OK_TO_FIRE 
DT_WEAPON_DISABLED 
DT_NO_AMMUNITION_FOR_TARGET 
DT_CANNOT_ACQUIRE_TARGET 

Constructor & Destructor Documentation

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 
)

Member Function Documentation

const DtWeaponComponentInterface& DtWeaponComponentInterface::operator= ( const DtWeaponComponentInterface orig)
virtual DtVrfProcessStateRepository* DtWeaponComponentInterface::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]
virtual DtString DtWeaponComponentInterface::type ( ) const [virtual]

Returns the string type of the repository, as defined in procSRTypes.h.

Implements DtVrfProcessStateRepository.

Accessor/mutator for myTargetSelectionCriteria.

Accessor/mutator for myTargetSelectionCriteria.

This must be called before calling locationWithinRegion() if the host entity has moved at all since this was last called.

virtual bool DtWeaponComponentInterface::locationWithinRegion ( const DtVector localLocation) const [virtual]
Returns:
True if localLocation falls within the valid target region.
Note:
updateRegionEvaluator() must be called prior to this function if there is a chance that the host entity has moved or reoriented since the last time updateRegionEvaluator() was called.
virtual void DtWeaponComponentInterface::setTarget ( const DtEntityTargetInformation target) [virtual]
virtual void DtWeaponComponentInterface::setRoundsFiredUponTarget ( const int &  roundsFired) [virtual]

Accessor/mutator for myRoundsFiredUponTarget.

virtual const int DtWeaponComponentInterface::roundsFiredUponTarget ( ) const [virtual]
virtual void DtWeaponComponentInterface::setTotalRoundsToFireUponTarget ( const int &  totalRoundsToFire) [virtual]

Accessor/mutator for myTotalRoundsToFireUponTarget.

virtual const int DtWeaponComponentInterface::totalRoundsToFireUponTarget ( ) const [virtual]
virtual void DtWeaponComponentInterface::setIsExplicitlyTasked ( const bool explicitlyTasked) [virtual]

Accessor/mutator for myIsExplicitlyTasked.

virtual const bool DtWeaponComponentInterface::isExplicitlyTasked ( ) const [virtual]

Accessor/mutator for myIsExplicitlyTasked.

virtual void DtWeaponComponentInterface::setAllowExplicitTasking ( const bool includeInDialogs) [virtual]

Accessor/mutator for myAllowExplicitTasking.

virtual const bool DtWeaponComponentInterface::allowExplicitTasking ( ) const [virtual]

Accessor/mutator for myAllowExplicitTasking.

virtual void DtWeaponComponentInterface::setDisplayName ( const DtString displayName) [virtual]

Accessor/mutator for myDisplayName.

virtual const DtString DtWeaponComponentInterface::displayName ( ) const [virtual]

Accessor/mutator for myDisplayName.

virtual void DtWeaponComponentInterface::setWeaponStatus ( const int  weaponStatus) [virtual]

Accessor/mutator for myWeaponStatus.

virtual const int DtWeaponComponentInterface::weaponStatus ( ) const [virtual]

Accessor/mutator for myWeaponStatus.

virtual void DtWeaponComponentInterface::clearTarget ( ) [virtual]

Accessor/mutator for myTarget.

virtual bool DtWeaponComponentInterface::hasTarget ( ) const [virtual]

Accessor/mutator for myTarget.

static DtVrfProcessStateRepository* DtWeaponComponentInterface::creator ( const DtString name,
DtVrfObject vrfObject,
DtReaderWriterRegistry parentRegistry 
) [static]

Create an instance of a DtLasingControllerPSR.

virtual void DtWeaponComponentInterface::setupRegionEvaluator ( ) [protected, virtual]

Uses the current data in myTargetSelectionCriteria and creates the and sets myRegionEvaluator, is applicable.


Member Data Documentation

Target selection data for this weapon.

Information about current target.

Tracks rounds fired upon current target.

Tracks total rounds to fire upon current target.

Tracks whether the weapon system has been explicitly tasked as opposed to a target being automatically selected.

Name to be used in the gui to represent this weapon.

DtVrfObject the weapon is attached to.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)