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

Protected Types

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

Protected Attributes

DtSimManagermySimManager
Cache myCache

Private Member Functions

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

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 egagement zone is currently active, or the appropriate flag is given to return regardless

Member Typedef Documentation

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 ( 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 ( DtVrfObject engagementArea,
const DtVector localLocation 
)
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)