VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
DtEngagementZonesManager Class Reference

The DtEngagementZonesManager will keep track of all the engagement zones and their state. More...

Public Member Functions

 DtEngagementZonesManager (DtSimManager *)
 CTOR. More...
 
virtual ~DtEngagementZonesManager ()
 DTOR. More...
 
virtual DtSimManagersimManager () const
 
virtual void init ()
 Adds callbacks for engagement zone types to watch for addition/removal. More...
 
virtual void tick ()
 Called each tick to clear out cache. More...
 
virtual bool contactConsideredHostile (const DtVrfObject *engagementArea, const DtVector &localLocation, int perceivedForce)
 Given an area, see if the entity in the given area should be considered a hostile entity. More...
 
virtual bool isInsideEngagementArea (const DtVrfObject *engagementArea, const DtVector &localLocation) const
 Given an area, see if the location is inside the area. More...
 

Protected Types

typedef std::map< DtString, boolPerceivedHostile
 
typedef std::map< const
DtVrfObject
*, PerceivedHostile
Cache
 

Protected Attributes

DtSimManagermySimManager
 
Cache myCache
 

Private Member Functions

 DtEngagementZonesManager (const DtEngagementZonesManager &orig)
 copy constructor More...
 
DtEngagementZonesManageroperator= (const DtEngagementZonesManager &orig)
 assignment operator More...
 

Detailed Description

The DtEngagementZonesManager will keep track of all the engagement zones and their state.

When the engagementZonesContainingLocation is called the engagement zone will only be returned if the engagement zone is currently active, or the appropriate flag is given to return regardless

Member Typedef Documentation

typedef std::map<const DtVrfObject*, PerceivedHostile> DtEngagementZonesManager::Cache
protected

Constructor & Destructor Documentation

DtEngagementZonesManager::DtEngagementZonesManager ( DtSimManager )

CTOR.

virtual DtEngagementZonesManager::~DtEngagementZonesManager ( )
virtual

DTOR.

DtEngagementZonesManager::DtEngagementZonesManager ( const DtEngagementZonesManager orig)
private

copy constructor

Member Function Documentation

virtual DtSimManager* DtEngagementZonesManager::simManager ( ) const
virtual
virtual void DtEngagementZonesManager::init ( )
virtual

Adds callbacks for engagement zone types to watch for addition/removal.

virtual void DtEngagementZonesManager::tick ( )
virtual

Called each tick to clear out cache.

virtual bool DtEngagementZonesManager::contactConsideredHostile ( const DtVrfObject engagementArea,
const DtVector localLocation,
int  perceivedForce 
)
virtual

Given an area, see if the entity in the given area should be considered a hostile entity.

This will be true if the perceivedForce is DtForceOther and the location is in the engagement area, and the area is active, and the area consideres unknown forces hostile

virtual bool DtEngagementZonesManager::isInsideEngagementArea ( const DtVrfObject engagementArea,
const DtVector localLocation 
) const
virtual

Given an area, see if the location is inside the area.

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

assignment operator

Member Data Documentation

DtSimManager* DtEngagementZonesManager::mySimManager
protected
Cache DtEngagementZonesManager::myCache
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)