VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtDisaggregatedDamageActuator Class Reference

DtPseudoAggregateDamageActuator models damage of an aggregate entity. More...

Inheritance diagram for DtDisaggregatedDamageActuator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtDisaggregatedDamageActuator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtDisaggregatedDamageActuator ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void tick ()
 Walks the list of subordinates, and if an undamaged subordinate is found, the appearance is set to DtDamageNone, otherwise it is set to DtDamageDestroyed.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
static void setDestroyedCallback (DtSimMessage *msg, void *usrData)
 Calls setDestroyed()

Protected Member Functions

virtual void setDestroyed ()
 Sends DtSetDestroyRequests to all the subordinates.
virtual void setRadio (DtSimBaseRadio *radio)
 Overrides this so it can register its interest the set destroyed message.
 DtDisaggregatedDamageActuator ()
 default constructor, not implemented
 DtDisaggregatedDamageActuator (const DtDisaggregatedDamageActuator &orig)
 copy constructor, not implemented
DtDisaggregatedDamageActuatoroperator= (const DtDisaggregatedDamageActuator &orig)
 assignment operator, not implemented

Detailed Description

DtPseudoAggregateDamageActuator models damage of an aggregate entity.

End User Description: Updates the aggregate entity's appearance bit based on the health of its subordinates. Uses Descriptor Type: DtActuatorComponentDescriptor


Constructor & Destructor Documentation

DtDisaggregatedDamageActuator::DtDisaggregatedDamageActuator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

destructor

default constructor, not implemented

copy constructor, not implemented


Member Function Documentation

virtual DtString DtDisaggregatedDamageActuator::type ( ) const [virtual]

Returns a string identifies the class type of component.

Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.

Returns:
DtPseudoAggregateDamageActuatorType

Reimplemented from DtSimComponent.

virtual void DtDisaggregatedDamageActuator::tick ( ) [virtual]

Walks the list of subordinates, and if an undamaged subordinate is found, the appearance is set to DtDamageNone, otherwise it is set to DtDamageDestroyed.

Reimplemented from DtSimComponent.

static DtSimComponent* DtDisaggregatedDamageActuator::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.
static void DtDisaggregatedDamageActuator::setDestroyedCallback ( DtSimMessage msg,
void *  usrData 
) [static]
virtual void DtDisaggregatedDamageActuator::setDestroyed ( ) [protected, virtual]

Sends DtSetDestroyRequests to all the subordinates.

virtual void DtDisaggregatedDamageActuator::setRadio ( DtSimBaseRadio radio) [protected, virtual]

Overrides this so it can register its interest the set destroyed message.

Reimplemented from DtActuatorComponent.

DtDisaggregatedDamageActuator& DtDisaggregatedDamageActuator::operator= ( const DtDisaggregatedDamageActuator orig) [protected]

assignment operator, not implemented


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)