21 #ifndef CPATH_FINDER_H
22 #define CPATH_FINDER_H
25 #include "../PF_LIB/PFManager.h"
27 namespace OpenSkyNet {
31 std::list<Object*> _continuingObjects;
32 bool _allObjectsFinished;
33 void removeFinishedPiecemealObjects();
36 virtual bool removeObject(
Object* obj_);
43 std::vector<Math::Point<int> > _drivBins,
_targBins;
49 enum STATUS { NO, NO_BUT_DONT_PF_AGAIN_YET, YES };
60 virtual bool update(
float dt_);
62 virtual bool setPriority(
Object* obj_, OBJECT_PRIORITY prio_);
65 virtual void setPFGrid(
const Math::Point<>* corners_, std::set<CD::Volume*>& obstacles_);
78 virtual void setPFOptions(
Object* driver_,
Object* target_,
float targetRadius_,
80 bool assignToDriver_,
Math::Path& path_,
double secsAllottedPerUpdate_=0.00033);
99 #endif //CPATH_FINDER_H
Definition: CPathFinder.h:38
Grid * g_initialGrid
Definition: CDGrid.cpp:18
Definition: CUpdater.h:49
std::vector< Math::Point< int > > _targBins
Definition: CPathFinder.h:43
PF::Manager::ALGORITHM _algo
Definition: CPathFinder.h:45
STATUS _inProgress
Definition: CPathFinder.h:50
double _secsAllottedPerUpdate
Definition: CPathFinder.h:47
Definition: CUpdater.h:49
PF::Manager * getPFManager(Object *obj_)
Definition: CPathFinder.h:88
Definition: CUpdater.h:40
Math::Path * getPath(Object *obj_)
Definition: CPathFinder.h:92
static void shutDown()
Definition: CDGrid.cpp:85
RESULT
Definition: PFConsts.h:33
virtual ~PathFinder()
Definition: CPathFinder.h:58
static void init(Utils::uint initGlobalXDivs_, Utils::uint initGlobalYDivs_, Utils::uint initGlobalZDivs_, Utils::uint maxGlobalSubdivs_)
Definition: CDGrid.cpp:70
ALGORITHM
Definition: PFManager.h:132
PF::Manager _pFManager
Definition: CPathFinder.h:39
OBJECT_PRIORITY
Definition: CUpdater.h:49
#define CORE_DLL
Definition: CCoreDLL.h:57
Object * _target
Definition: CPathFinder.h:40
bool _resetPFVars
Definition: CPathFinder.h:46
Math::Path * _path
Definition: CPathFinder.h:41
Definition: PFManager.h:129
Math::Point _targPos
Definition: CPathFinder.h:42
STATUS
Definition: CPathFinder.h:49
PathFinder()
Definition: CPathFinder.h:55
Definition: CPathFinder.h:30
Definition: CUpdater.h:54