![]() |
VR-Forces 5.0.1 Developer's Guide
|
The DtEngagementZonesManager will keep track of all the engagement zones and their state.
Public Member Functions | |
| DtEngagementZonesManager (const DtSimulationServices *) | |
| virtual | ~DtEngagementZonesManager () |
| virtual void | init () |
| virtual void | tick () |
| virtual bool | contactConsideredHostile (DtSimObjectReference engagementArea, const DtVector &localLocation, int perceivedForce) const |
| virtual bool | isInsideEngagementArea (DtSimObjectReference engagementArea, const DtVector &localLocation) const |
Protected Types | |
| typedef std::map< DtString, bool > | PerceivedHostile |
Protected Attributes | |
| const DtSimulationServices * | mySimulationServices |
Private Member Functions | |
| DtEngagementZonesManager (const DtEngagementZonesManager &orig) | |
| DtEngagementZonesManager & | operator= (const DtEngagementZonesManager &orig) |
|
protected |
| DtEngagementZonesManager::DtEngagementZonesManager | ( | const DtSimulationServices * | ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
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 considers unknown forces hostile.
|
virtual |
Given an area, see if the location is inside the area.
|
private |
assignment operator
|
protected |