#include <unit.h>
Inheritance diagram for teleportUnit:
Public Member Functions | |
teleportUnit (int _x, int _y, int _stayTime) | |
tDirection | makeMove (mapProvider *mp, reservationProvider *rp, simulationInfo *simInfo) |
make teleport move. | |
void | updateLocation (int _x, int _y, bool, simulationInfo *) |
updateLocation only tells a unit where it is located, it doesn't physically change the location in the world | |
Private Attributes | |
int | stayTime |
int | timer |
|
|
|
make teleport move. the teleport unit stays put for some # moves, and then teleports to a new random location. Reimplemented from unit. |
|
updateLocation only tells a unit where it is located, it doesn't physically change the location in the world
Reimplemented from unit. |
|
|
|
|