Go to the documentation of this file.
25 virtual const char *
GetName() {
return "randomUnit"; }
41 const char *
GetName() {
return "TeleportUnit"; }
56 const char *
GetName() {
return "RandomerUnit"; }
73 virtual const char *
GetName() {
return "BilliardBallUnit"; }
bool MakeMove(MapEnvironment *, OccupancyInterface< xyLoc, tDirection > *, MapSimulationInfo *, tDirection &dir)
make teleport move.
virtual bool MakeMove(environment *theEnv, OccupancyInterface< state, action > *, SimulationInfo< state, action, environment > *, action &a)
A unit that moves in random directions changing direction randomly.
bool MakeMove(MapEnvironment *, OccupancyInterface< xyLoc, tDirection > *, MapSimulationInfo *, tDirection &dir)
Make a move.
bool MakeMove(MapEnvironment *, OccupancyInterface< xyLoc, tDirection > *, MapSimulationInfo *, tDirection &dir)
Make a random move.
virtual void UpdateLocation(environment *, state &newloc, bool success, SimulationInfo< state, action, environment > *)
void UpdateLocation(MapEnvironment *, xyLoc &, bool, MapSimulationInfo *)
Set location after last move.
virtual const char * GetName()
A unit that moves in random directions for every step.
RandomerUnit(int _x, int _y)
A unit which randomly teleports around the world.
RandomUnit(int _x, int _y)
virtual const char * GetName()
TeleportUnit(int x, int y, int _stayTime)
BilliardBallUnit(int _x, int _y, int _coolOffPeriod, double _probDirChange)
A configurable billiard ball unit.