VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrf::DtIffStateComponentData Struct Reference

Data container for the IFF (Identification Friend or Foe) state of an entity. Holds a list of IFF mode settings and the host entity UUID. Note: once a mode is enabled it cannot be disabled. To turn a mode off, call setModeIsOn with false.

Public Member Functions

 DtIffStateComponentData ()
 
 DtIffStateComponentData (const DtIffStateComponentData &orig)
 
DtIffStateComponentData & operator= (const DtIffStateComponentData &rhs)
 
bool hasModeSetting (int i) const
 
const DtIffModeSetting * modeSetting (int i) const
 
DtIffModeSetting * modeSetting (int i)
 
std::vector< DtModeType > enabledModes () const
 
DtIffModeSettingsList & modeSettings ()
 
const DtIffModeSettingsList & modeSettings () const
 

Protected Attributes

DtIffModeSettingsList myModeSettingsList
 
DtUUID myHostId
 

Constructor & Destructor Documentation

makVrf::DtIffStateComponentData::DtIffStateComponentData ( )
inline

Default modes to be enabled mimic current VRL mode enabled.

makVrf::DtIffStateComponentData::DtIffStateComponentData ( const DtIffStateComponentData &  orig)
inline

Copy constructor.

Member Function Documentation

DtIffStateComponentData& makVrf::DtIffStateComponentData::operator= ( const DtIffStateComponentData &  rhs)
inline

Assignment operator.

References myHostId, and myModeSettingsList.

bool makVrf::DtIffStateComponentData::hasModeSetting ( int  i) const
inline

Returns true if a mode setting for mode index i exists.

Parameters
iMode index to query.
Returns
True if the mode setting exists.
const DtIffModeSetting* makVrf::DtIffStateComponentData::modeSetting ( int  i) const
inline

Returns a const pointer to the mode setting for mode index i, or nullptr if not found.

Parameters
iMode index to query.
Returns
Const pointer to the mode setting, or nullptr.
DtIffModeSetting* makVrf::DtIffStateComponentData::modeSetting ( int  i)
inline

Returns a mutable pointer to the mode setting for mode index i, or nullptr if not found.

Parameters
iMode index to query.
Returns
Pointer to the mode setting, or nullptr.
std::vector<DtModeType> makVrf::DtIffStateComponentData::enabledModes ( ) const
inline

Returns the list of currently enabled IFF mode types.

Returns
Vector of enabled mode types.
DtIffModeSettingsList& makVrf::DtIffStateComponentData::modeSettings ( )
inline

Returns a mutable reference to the IFF mode settings list.

const DtIffModeSettingsList& makVrf::DtIffStateComponentData::modeSettings ( ) const
inline

Returns a const reference to the IFF mode settings list.

Member Data Documentation

DtIffModeSettingsList makVrf::DtIffStateComponentData::myModeSettingsList
protected

Accessor and mutator for the host entity UUID.

List of IFF mode settings, keyed by mode type.

Referenced by operator=().

DtUUID makVrf::DtIffStateComponentData::myHostId
protected

UUID of the host entity associated with this IFF state.

Referenced by operator=().


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)