Go to the documentation of this file.
42 {
return makeMove(ame->GetMapAbstraction(), 0, si,dir); }
bool getCachedMove(tDirection &dir)
virtual void addPathToCache(path *p)
virtual void OpenGLDraw(const AbsMapEnvironment *, const AbsMapSimulationInfo *) const
virtual void setTarget(AbsMapUnit *u)
virtual bool MakeMove(AbsMapEnvironment *ame, OccupancyInterface< xyLoc, tDirection > *, AbsMapSimulationInfo *si, tDirection &dir)
std::vector< tDirection > moves
A general unit which collects path information from a SearchAlgorithm and incrementally executes that...
virtual bool makeMove(MapProvider *, reservationProvider *, AbsMapSimulationInfo *simInfo, tDirection &dir)
virtual const char * GetName()
virtual const char * GetName()=0
SearchUnit(int x, int y, AbsMapUnit *target, SearchAlgorithm *alg)
void UpdateLocation(AbsMapEnvironment *, xyLoc &l, bool success, AbsMapSimulationInfo *si)
virtual SearchAlgorithm * getAlgorithm()
SearchAlgorithm * algorithm
virtual void updateLocation(int _x, int _y, bool, AbsMapSimulationInfo *)
The StatCollection class is for collecting stats across different parts of the simulation.
spreadExecSearchAlgorithm * s_algorithm
A generic algorithm which can be used for pathfinding.
A linked list of nodes which form a continuous path.
virtual void GetLocation(xyLoc &l)
void LogFinalStats(StatCollection *stats)
log any final one-time stats before a simulation is ended
void LogStats(StatCollection *stats)
log an stats that may have been computed during the last run