Go to the documentation of this file.
23 virtual const char *
GetName() {
return "patrolUnit"; }
33 double goToLoc(MapAbstraction *aMap,
int which);
double goToLoc(MapAbstraction *aMap, int which)
void OpenGLDraw(const MapProvider *, const SimulationInfo *) const
virtual tDirection makeMove(MapProvider *, reservationProvider *, SimulationInfo *simInfo)
** Creates a patrol unit and assigns it numPLocations random locations to patrol.
void addPathToCache(path *p)
std::vector< tDirection > moves
void LogFinalStats(StatCollection *stats)
log any final one-time stats before a simulation is ended
The StatCollection class is for collecting stats across different parts of the simulation.
void updateLocation(int _x, int _y, bool worked, SimulationInfo *)
void addPatrolLocation(unit *)
std::vector< unit * > Locs
A linked list of nodes which form a continuous path.
void LogStats(StatCollection *stats)
log an stats that may have been computed during the last run
virtual const char * GetName()