VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtVrfTurretedBalGunPSR Class Reference

File: turBalGunPSR.h. More...

Inheritance diagram for DtVrfTurretedBalGunPSR:
Inheritance graph
[legend]

Public Member Functions

 DtVrfTurretedBalGunPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 DtVrfTurretedBalGunPSR (const DtVrfTurretedBalGunPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
const DtVrfTurretedBalGunPSRoperator= (const DtVrfTurretedBalGunPSR &orig)
virtual ~DtVrfTurretedBalGunPSR ()
virtual
DtVrfProcessStateRepository
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
virtual double maxSlewRate () const
 Get the maximum rate at which this turret can slew.
virtual void setMaxSlewRate (double maxSlewRate)
 Set the maximum rate at which this turret can slew.
virtual DtArtPartType turretArtPart () const
 Get the art part number for the turret we're associated with.
virtual void setTurretArtPart (DtArtPartType turretArtPart)
 Set the art part number for the turret we're associated with.
virtual bool clockwise () const
 Are we currently scanning clockwise (or counterclockwise?)
virtual void setClockwise (bool clockwise)
virtual bool cannotAcquireTarget () const
 Set to true when there is no LOS to a target.
virtual void setCannotAcquireTarget (bool cannotAcquire)
virtual DtString type () const
 Returns the string type of the repository, as defined in procSRTypes.h.
- Public Member Functions inherited from DtVrfBalGunPSR
 DtVrfBalGunPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 DtVrfBalGunPSR (const DtVrfBalGunPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
const DtVrfBalGunPSRoperator= (const DtVrfBalGunPSR &orig)
virtual ~DtVrfBalGunPSR ()
virtual const
DtDetonationDescriptorList
pendingDetonations () const
 Get list of pending detonations.
virtual void addPendingDetonation (DtDetonationDescriptor *desc)
 Add a new pending detonation.
virtual void removePendingDetonation (const DtEventId &eventId)
 Remove a particular pending detonation.
virtual void setFiringCycleCompleteTime (DtTime completeTime)
 Update the time that the firing cycle will be complete.
virtual DtTime timeFiringCycleComplete () const
 Access firing cycle complete time.
virtual void setDisplayName (const DtString &displayName)
virtual const DtString displayName () const
virtual void setCommandedToFire ()
 Change and test functions for fire state.
virtual void setHasFired ()
 Change and test functions for fire state.
virtual bool isCommandedToFire ()
 Change and test functions for fire state.
virtual bool hasFired ()
 Change and test functions for fire state.
- Public Member Functions inherited from DtVrfWeaponPSR
 DtVrfWeaponPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 DtVrfWeaponPSR (const DtVrfWeaponPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
const DtVrfWeaponPSRoperator= (const DtVrfWeaponPSR &orig)
virtual ~DtVrfWeaponPSR ()
virtual void setCurrentTarget (const DtEntityIdentifier &target, bool targetOverride=false)
 These two are provided for backward compatibility.
virtual const DtEntityIdentifier & currentTarget () const
virtual void setUserTargetOverride (bool userTargetOverride)
 Sets the user target override for the next target detection period.
virtual bool userTargetOverride () const
virtual void setCurrentTargetName (const DtString &target, bool targetOverride=false)
 The name of the target this weapon is currently attacking.
virtual const DtStringcurrentTargetName () const
virtual const DtVrfMunitionLoadermunitionLoader () const
 The munitionLoader manages loading and unloading timers.
virtual DtVrfMunitionLoadermunitionLoader ()
virtual void setCurrentMunitionName (const DtString &currentMunitionName)
 Sets the name of the current munition.
virtual const DtStringcurrentMunitionName () const
 Returns the name of the current munition.
virtual bool targetAcquired () const
 Do I have the target in my sights, ready to be fired upon?
virtual void setTargetAcquired (bool targetAcquired)
- 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 DtVrfProcessStateRepositoryoperator= (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 DtReaderWriteroperator= (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 aliasContaineraliases () 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 DtReaderWriterRegistryregistry () const
 Collection of child DtReaderWriter nodes owned by this object.
DtReaderWriterRegistryregistry ()
 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 DtVrfWeaponPSR.

Protected Member Functions

 DtVrfTurretedBalGunPSR ()
- Protected Member Functions inherited from DtVrfBalGunPSR
 DtVrfBalGunPSR ()
- Protected Member Functions inherited from DtVrfWeaponPSR
 DtVrfWeaponPSR ()
- 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

double myMaxSlewRate
 Maximum rate at which this turret can slew.
int myTurretArtPart
 The art part number for the turret we're associated with.
DtRwBoolean myClockwiseFlag
 Are we currently scanning clockwise (or counterclockwise?)
DtRwBoolean myCannotAcquireTarget
- Protected Attributes inherited from DtVrfBalGunPSR
DtDetonationDescriptorList myPendingDetonations
 List of DtDetonationDescriptors, used to save/restore information about pending scheduled detonations.
DtRwInt myFireState
 State describing the gun; for communication between the controller and actuator.
DtRwReal myFireCycleCompleteTime
 The time at which the gun firing cycle is complete.
DtRwString myDisplayName
- Protected Attributes inherited from DtVrfWeaponPSR
DtRwBoolean myTargetAcquired
DtRwString myCurrentTargetName
DtRwBoolean myUserTargetOverride
DtRwString myCurrentMunitionName
DtVrfMunitionLoader myMunitionLoader
DtEntityIdentifier myCurrentTargetId
 to have something concrete to return in currentTarget; not written to OOB
- Protected Attributes inherited from DtVrfProcessStateRepository
DtVrfObjectmyVrfObject
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.

Additional Inherited Members

- Public Types inherited from DtReaderWriter
typedef std::vector
< DtSymbolString
aliasContainer
typedef std::vector
< DtSymbolString >::iterator 
aliasIter
typedef std::vector
< DtSymbolString >
::const_iterator 
aliasConstIter
typedef std::pair
< DtSymbolString, DtString
DtVariableNameType
- Protected Types inherited from DtVrfBalGunPSR
enum  FireState { CommandedToFire, HasFired }
 State describing the gun. More...
- Static Protected Attributes inherited from DtVrfProcessStateRepository
static
DtVrfProcessStateRepositoryFactory
theFactory

Detailed Description

File: turBalGunPSR.h.

Class: DtVrfTurretedBalGunPSRHolds shared and/or checkpointable data needed for the processes of a combined turret/gun weapon system

Constructor & Destructor Documentation

DtVrfTurretedBalGunPSR::DtVrfTurretedBalGunPSR ( )
protected
DtVrfTurretedBalGunPSR::DtVrfTurretedBalGunPSR ( DtVrfObject vrfObject,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)
DtVrfTurretedBalGunPSR::DtVrfTurretedBalGunPSR ( const DtVrfTurretedBalGunPSR orig,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)
virtual DtVrfTurretedBalGunPSR::~DtVrfTurretedBalGunPSR ( )
virtual

Member Function Documentation

const DtVrfTurretedBalGunPSR& DtVrfTurretedBalGunPSR::operator= ( const DtVrfTurretedBalGunPSR orig)
virtual DtVrfProcessStateRepository* DtVrfTurretedBalGunPSR::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const
virtual

Reimplemented from DtVrfBalGunPSR.

virtual double DtVrfTurretedBalGunPSR::maxSlewRate ( ) const
virtual

Get the maximum rate at which this turret can slew.

virtual void DtVrfTurretedBalGunPSR::setMaxSlewRate ( double  maxSlewRate)
virtual

Set the maximum rate at which this turret can slew.

virtual DtArtPartType DtVrfTurretedBalGunPSR::turretArtPart ( ) const
virtual

Get the art part number for the turret we're associated with.

virtual void DtVrfTurretedBalGunPSR::setTurretArtPart ( DtArtPartType  turretArtPart)
virtual

Set the art part number for the turret we're associated with.

virtual bool DtVrfTurretedBalGunPSR::clockwise ( ) const
virtual

Are we currently scanning clockwise (or counterclockwise?)

virtual void DtVrfTurretedBalGunPSR::setClockwise ( bool  clockwise)
virtual
virtual bool DtVrfTurretedBalGunPSR::cannotAcquireTarget ( ) const
virtual

Set to true when there is no LOS to a target.

virtual void DtVrfTurretedBalGunPSR::setCannotAcquireTarget ( bool  cannotAcquire)
virtual
virtual DtString DtVrfTurretedBalGunPSR::type ( ) const
virtual

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

Reimplemented from DtVrfBalGunPSR.

static DtVrfProcessStateRepository* DtVrfTurretedBalGunPSR::creator ( const DtString name,
DtVrfObject vrfObject,
DtReaderWriterRegistry parentRegistry 
)
static

Create an instance of a DtVrfWeaponPSR.

Reimplemented from DtVrfBalGunPSR.

Member Data Documentation

double DtVrfTurretedBalGunPSR::myMaxSlewRate
protected

Maximum rate at which this turret can slew.

Note
This value is not saved to the OOB file. It is reset at runtime by the .ope file when the scenario is loaded.
int DtVrfTurretedBalGunPSR::myTurretArtPart
protected

The art part number for the turret we're associated with.

Note
This value is not saved to the OOB file. It is reset at runtime by the actuator when the scenario is loaded.
DtRwBoolean DtVrfTurretedBalGunPSR::myClockwiseFlag
protected

Are we currently scanning clockwise (or counterclockwise?)

DtRwBoolean DtVrfTurretedBalGunPSR::myCannotAcquireTarget
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)