7#ifndef __PATH_MANAGER_H__
8#define __PATH_MANAGER_H__
19#define PM df::PathManager::getInstance()
63 void cycle(
int max_cycle_time=-1);
Definition: PathFind.h:31
Definition: PathManager.h:23
int startUp() override
Start up PathManager.
PathManager()
Private since a singleton.
static PathManager & getInstance()
Get the one and only instance of the PathManager.
std::vector< PathFind * > m_finder
PathFind's registered.
Definition: PathManager.h:29
int registerPathFind(PathFind *p_path_find)
Register PathFind with PathManager.
void setMinCycleTime(int new_min_cycle_time)
Set minimum cycle time (minimum game loop time spent pathfinding).
int getMinCycleTime() const
Get minimum cycle time (minimum game loop time spent pathfinding).
void cycle(int max_cycle_time=-1)
Cycle through registered PathFinders.
int getPathFinders() const
Return number of PathFind-ers.
PathManager(PathManager const &)
Don't allow copy.
int m_min_cycle_time
Min pathfinding time, in millisec.
Definition: PathManager.h:30
int unregisterPathFind(PathFind *p_path_find)
Unregister PathFind with PathManager.
void operator=(PathManager const &)
Don't allow assignment.
void shutDown() override
Shut down PathManager.
An animation for a sprite.
Definition: Animation.h:15