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 Member Functions | Protected Attributes | Private Member Functions
DtSurrenderSearch Class Reference

class DtSurrenderSearch:

Instances of DtSurrenderSearch are used to search the echelon entity structure for ANY entities that might have the given surrendered value. If any are detected the search is terminated. Call the searchBelow() function to do the actual search. Test the result by calling result().

Inheritance diagram for DtSurrenderSearch:
Inheritance graph
[legend]

Public Member Functions

 DtSurrenderSearch ()
 
virtual ~DtSurrenderSearch () override
 
void setSurrenderTestValue (bool)
 
bool surrenderTestValue () const
 

Protected Member Functions

virtual bool initializeSearch (const DtSimulationServices *vrfObjectManager) override
 
virtual bool inspectEntity (DtSimObjectReference entity) override
 
virtual bool searchSubordinates (DtSimObjectReference pAggEntity, bool excludeDestroyed) override
 
virtual bool isValidEntity (DtSimObjectReference entity) override
 

Protected Attributes

bool mySurrenderTestVal
 

Private Member Functions

 DtSurrenderSearch (const DtSurrenderSearch &orig)
 
DtSurrenderSearchoperator= (const DtSurrenderSearch &orig)
 

Constructor & Destructor Documentation

DtSurrenderSearch::DtSurrenderSearch ( )

default constructor

virtual DtSurrenderSearch::~DtSurrenderSearch ( )
overridevirtual

destructor

DtSurrenderSearch::DtSurrenderSearch ( const DtSurrenderSearch orig)
private

copy constructor; not implemented

Member Function Documentation

void DtSurrenderSearch::setSurrenderTestValue ( bool  b)
inline

References mySurrenderTestVal.

bool DtSurrenderSearch::surrenderTestValue ( ) const
inline

References mySurrenderTestVal.

virtual bool DtSurrenderSearch::initializeSearch ( const DtSimulationServices vrfObjectManager)
overrideprotectedvirtual

Function to initialize the search.

Reimplemented from DtSimSubordinateSearch.

virtual bool DtSurrenderSearch::inspectEntity ( DtSimObjectReference  entity)
overrideprotectedvirtual

Test any and all entities to find one that is at a certain altitude.

Reimplemented from DtSimSubordinateSearch.

virtual bool DtSurrenderSearch::searchSubordinates ( DtSimObjectReference  pAggEntity,
bool  excludeDestroyed 
)
overrideprotectedvirtual

Controls whether subordinates of a specified pseudo-aggregate are searched. If the "ANY" modifier was specified, it calls the base class version, otherwise it just returns false.

Reimplemented from DtSimSubordinateSearch.

virtual bool DtSurrenderSearch::isValidEntity ( DtSimObjectReference  entity)
overrideprotectedvirtual

Returns true if an aggregate or lifeform (filters platform ents)

Reimplemented from DtSimSubordinateSearch.

DtSurrenderSearch& DtSurrenderSearch::operator= ( const DtSurrenderSearch orig)
private

assignment operator; not implemented

Member Data Documentation

bool DtSurrenderSearch::mySurrenderTestVal
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)