![]() |
VR-Forces 4.8 Class Documentation
|
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 DtSimManager * | simManager () 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, bool > | PerceivedHostile |
| typedef std::map< const DtVrfObject *, PerceivedHostile > | Cache |
Protected Attributes | |
| DtSimManager * | mySimManager |
| Cache | myCache |
Private Member Functions | |
| DtEngagementZonesManager (const DtEngagementZonesManager &orig) | |
| copy constructor More... | |
| DtEngagementZonesManager & | operator= (const DtEngagementZonesManager &orig) |
| assignment operator More... | |
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
|
protected |
|
protected |
| DtEngagementZonesManager::DtEngagementZonesManager | ( | DtSimManager * | ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
virtual |
|
virtual |
Adds callbacks for engagement zone types to watch for addition/removal.
|
virtual |
Called each tick to clear out cache.
|
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 |
Given an area, see if the location is inside the area.
|
private |
assignment operator
|
protected |
|
protected |