![]() |
VR-Forces 5.0.1 Developer's Guide
|
Used to find the best cover point(s) to take cover from attacker at a specified location. If myBestCoverPoint is not DtVector::zero(), it will be the cover point to use.
Public Member Functions | |
| DtCoverPointFinder (const DtVector &startPosition, const DtVector &threatPosition, double threatRadius, double distanceFromThreat, unsigned numberOfPoints, const Coordinate_System *cs) | |
| virtual DtOnGraphVertexVisitedResult | processPoint (const DtVector &localPoint, const DtNavTag &tag) |
| virtual DtOnPathToGraphVertexComputedResult | processPath (const DtVector &localPoint, double pathCost) |
| double | angleToPoint (const DtVector &fromPoint, const DtVector &toPoint) |
| std::pair< double, double > | anglesToCircularArea (const DtVector &fromPoint, const DtVector &toPoint, double radius) |
Static Public Member Functions | |
| static DtOnGraphVertexVisitedResult | pointCallback (const DtVector &localPoint, const DtNavTag &tag, void *userData) |
| static DtOnPathToGraphVertexComputedResult | pathCallback (const DtVector &localPoint, double pathCost, void *userData) |
Static Public Attributes | |
| static unsigned | theMinPointsToConsider |
| static double | theMaxPointsToConsiderFactor |
| static double | theCostLimitFactor |
| DtCoverPointFinder::DtCoverPointFinder | ( | const DtVector & | startPosition, |
| const DtVector & | threatPosition, | ||
| double | threatRadius, | ||
| double | distanceFromThreat, | ||
| unsigned | numberOfPoints, | ||
| const Coordinate_System * | cs | ||
| ) |
|
static |
|
virtual |
|
static |
|
virtual |
| std::pair<double, double> DtCoverPointFinder::anglesToCircularArea | ( | const DtVector & | fromPoint, |
| const DtVector & | toPoint, | ||
| double | radius | ||
| ) |
| DtVector DtCoverPointFinder::myThreatPosition |
| double DtCoverPointFinder::myThreatRadius |
| double DtCoverPointFinder::myDistanceFromThreat |
| DtVector DtCoverPointFinder::myStartPosition |
| unsigned DtCoverPointFinder::myNumberOfPoints |
| double DtCoverPointFinder::myAngleToThreat |
| unsigned DtCoverPointFinder::myNumberOfPointsConsidered |
| bool DtCoverPointFinder::myCurrentCoverIsHigh |
| std::set<DtCoverPoint> DtCoverPointFinder::myBestCoverPoints |
Acceptable cover points, ordered by preference.
| const Coordinate_System* DtCoverPointFinder::myCoordSys |
|
static |
|
static |
= 10.0
|
static |
= 2.0