VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
coverPointFinder.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include "matrix/vlVector.h"
10 
12 
15 {
16 public:
17 
20 
22  bool operator<(const DtCoverPoint& other) const;
23 
24  DtVector myPoint;
26  double myPathCost;
29 
30  static double theCostToleranceFactor;
32 };
33 
37 {
38 public:
39 
40  DtCoverPointFinder(const DtVector& startPosition, const DtVector& threatPosition,
41  double threatRadius, double distanceFromThreat, unsigned numberOfPoints, const Coordinate_System* cs);
42 
43  static DtOnGraphVertexVisitedResult pointCallback(
44  const DtVector& localPoint, const DtNavTag& tag, void* userData);
45  virtual DtOnGraphVertexVisitedResult processPoint(const DtVector& localPoint, const DtNavTag& tag);
46 
47  static DtOnPathToGraphVertexComputedResult pathCallback(
48  const DtVector& localPoint, double pathCost, void* userData);
49  virtual DtOnPathToGraphVertexComputedResult processPath(const DtVector& localPoint, double pathCost);
50 
51  double angleToPoint(const DtVector& fromPoint, const DtVector& toPoint);
52 
53  std::pair<double, double> anglesToCircularArea(const DtVector& fromPoint, const DtVector& toPoint, double radius);
54 
55  DtVector myThreatPosition;
58  DtVector myStartPosition;
59  unsigned myNumberOfPoints;
61 
63 
65 
66 
68  std::set<DtCoverPoint> myBestCoverPoints;
69 
71 
72  static unsigned theMinPointsToConsider;
74  static double theCostLimitFactor;
75 };
DtCoverPoint()
Definition: coverPointFinder.h:18
double myPathCost
Definition: coverPointFinder.h:26
unsigned myNumberOfPoints
Definition: coverPointFinder.h:59
static double theCostToleranceFactor
don&#39;t need to crouch
Definition: coverPointFinder.h:30
double myDistanceFromThreat
Definition: coverPointFinder.h:57
VR-Forces wrapper for Gameware NavTag. Note: This class keeps only a pointer to the data...
Definition: navDataTag.h:87
bool myCurrentCoverIsHigh
Definition: coverPointFinder.h:64
static double theCostLimitFactor
= 2.0
Definition: coverPointFinder.h:74
Definition: coordSystem.h:54
DtVector myPoint
Definition: coverPointFinder.h:24
double myThreatRadius
Definition: coverPointFinder.h:56
DtVector myStartPosition
Definition: coverPointFinder.h:58
const Coordinate_System * myCoordSys
Definition: coverPointFinder.h:70
unsigned myNumberOfPointsConsidered
Definition: coverPointFinder.h:62
static double theMaxPointsToConsiderFactor
= 10.0
Definition: coverPointFinder.h:73
std::set< DtCoverPoint > myBestCoverPoints
Acceptable cover points, ordered by preference.
Definition: coverPointFinder.h:68
Stores information on potential cover points.
Definition: coverPointFinder.h:14
double myAngleToThreat
Definition: coverPointFinder.h:60
bool myCoverIsHigh
Definition: coverPointFinder.h:28
static double theThreatDistanceToleranceFactor
= 0.05;
Definition: coverPointFinder.h:31
~DtCoverPoint()
Definition: coverPointFinder.h:19
#define DT_DLL_vrfNavigation
This file is used to determine how to build.
Definition: vrfNavigationDefines.h:26
double myDistanceFromThreat
Definition: coverPointFinder.h:25
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.
Definition: coverPointFinder.h:36
DtVector myThreatPosition
Definition: coverPointFinder.h:55
static unsigned theMinPointsToConsider
Definition: coverPointFinder.h:72
double myAngularDistFromThreat
Definition: coverPointFinder.h:27

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)