22 #ifndef FIFE_MODEL_IPATHER_H 23 #define FIFE_MODEL_IPATHER_H 41 typedef std::list<Location>
Path;
113 virtual std::string
getName()
const = 0;
std::list< Location > Path
A path is a list with locations. Each location holds the coordinate for one cell. ...
virtual bool solveRoute(Route *route, int32_t priority=MEDIUM_PRIORITY, bool immediate=false)=0
Solves the route to create a path.
virtual int32_t getMaxTicks()=0
Returns maximal ticks (update steps) to solve routes.
virtual void update()=0
Updates the pather (should it need updating).
virtual void setMaxTicks(int32_t ticks)=0
Sets maximal ticks (update steps) to solve routes.
virtual std::string getName() const =0
Gets the name of this pather.
virtual bool cancelSession(const int32_t sessionId)=0
Cancels a given session.
virtual bool followRoute(const Location ¤t, Route *route, double speed, Location &nextLocation)=0
Follows the path of the route.
virtual Route * createRoute(const Location &start, const Location &end, bool immediate=false, const std::string &cost_id="")=0
Creates a route between the start and end location that needs be solved.