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

DtUnderFireDeterminationComponentDescriptor; descriptor for the DtUnderFireDeterminationSensor component. More...

Inheritance diagram for DtUnderFireDeterminationComponentDescriptor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUnderFireDeterminationComponentDescriptor (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 constructor
 DtUnderFireDeterminationComponentDescriptor (const DtUnderFireDeterminationComponentDescriptor &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor.
DtUnderFireDeterminationComponentDescriptoroperator= (const DtUnderFireDeterminationComponentDescriptor &orig)
 assignment. See note above.
virtual ~DtUnderFireDeterminationComponentDescriptor ()
 destructor
virtual DtString type () const
 Returns the type of component this descriptor describes.
virtual DtComponentDescriptorclone (DtReaderWriterRegistry *parentRegistry=NULL) const
virtual DtTime underFireTime () const
 Accessor/mutator for myUnderFireTime.
virtual void setUnderFireTime (DtTime underFireTime)
 Accessor/mutator for myUnderFireTime.
virtual DtReal underFireDistance () const
 Accessor/mutator for myUnderFireDistance.
virtual void setUnderFireDistance (DtReal underFireDistance)
 Accessor/mutator for myUnderFireDistance.
virtual bool underFireFromFriendly () const
 Accessor/mutator for myUnderFireFromFriendly.
virtual void setUnderFireFromFriendly (bool underFireFromFriendly)
 Accessor/mutator for myUnderFireFromFriendly.

Static Public Member Functions

static DtComponentDescriptorcreator ()
 

Protected Member Functions

 DtUnderFireDeterminationComponentDescriptor ()
 default constructor; not implemented

Protected Attributes

Parameters

These parameters are available for setting in the OPD files.

DtRwTime myUnderFireTime
 Parameter Name: under-fire-time
Parameter Description: The time after which an entity is no longer considered to be under fire.
DtRwReal myUnderFireDistance
 Parameter Name: under-fire-distance
Parameter Description: The distance from a detonation at which an entity is considered to be under fire.
DtRwBoolean myUnderFireFromFriendly
 Parameter Name: under-fire-from-friendly
Parameter Description: Flag indicating whether or not friendly fire should affect the under fire condition.

Detailed Description

DtUnderFireDeterminationComponentDescriptor; descriptor for the DtUnderFireDeterminationSensor component.

This class is used to specify the parameters for the DtUnderFireDeterminationSensor component.


Constructor & Destructor Documentation

constructor

copy constructor.

destructor

default constructor; not implemented


Member Function Documentation

DtUnderFireDeterminationComponentDescriptor& DtUnderFireDeterminationComponentDescriptor::operator= ( const DtUnderFireDeterminationComponentDescriptor orig)

assignment. See note above.

Returns the type of component this descriptor describes.

Used to create the descriptor on read from an mtl file. Component descriptor type strings are defined in compDescTypes.h.

Returns:
DtUnderFireDeterminationComponentDescriptorType

Reimplemented from DtComponentDescriptor.

Reimplemented from DtComponentDescriptor.

Accessor/mutator for myUnderFireTime.

virtual void DtUnderFireDeterminationComponentDescriptor::setUnderFireTime ( DtTime  underFireTime) [virtual]

Accessor/mutator for myUnderFireTime.

Accessor/mutator for myUnderFireDistance.

virtual void DtUnderFireDeterminationComponentDescriptor::setUnderFireDistance ( DtReal  underFireDistance) [virtual]

Accessor/mutator for myUnderFireDistance.

Accessor/mutator for myUnderFireFromFriendly.

virtual void DtUnderFireDeterminationComponentDescriptor::setUnderFireFromFriendly ( bool  underFireFromFriendly) [virtual]

Accessor/mutator for myUnderFireFromFriendly.

Returns:
Newly created instance of this class, with an empty DtReaderWriter name. Creation methods are registered with a DtComponentDescriptorFactory, so they can be created on demand as they are read in from a parameter database file.

Reimplemented from DtComponentDescriptor.


Member Data Documentation

Parameter Name: under-fire-time
Parameter Description: The time after which an entity is no longer considered to be under fire.


Parameter Default Value: 120.
Parameter Units: seconds

Parameter Name: under-fire-distance
Parameter Description: The distance from a detonation at which an entity is considered to be under fire.


Parameter Default Value: 1000.
Parameter Units: meters

Parameter Name: under-fire-from-friendly
Parameter Description: Flag indicating whether or not friendly fire should affect the under fire condition.


Parameter Default Value: True


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)