Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

teleportUnit Class Reference

A unit which randomly teleports around the world. More...

#include <unit.h>

Inheritance diagram for teleportUnit:

Inheritance graph
[legend]
Collaboration diagram for teleportUnit:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

A unit which randomly teleports around the world.


Constructor & Destructor Documentation

teleportUnit::teleportUnit int  _x,
int  _y,
int  _stayTime
[inline]
 


Member Function Documentation

tDirection teleportUnit::makeMove mapProvider mp,
reservationProvider rp,
simulationInfo simInfo
[virtual]
 

make teleport move.

the teleport unit stays put for some # moves, and then teleports to a new random location.

Reimplemented from unit.

void teleportUnit::updateLocation int  _x,
int  _y,
bool  ,
simulationInfo
[virtual]
 

updateLocation only tells a unit where it is located, it doesn't physically change the location in the world

Reimplemented from unit.


Member Data Documentation

int teleportUnit::stayTime [private]
 

int teleportUnit::timer [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 18 03:45:54 2009 for HOG by doxygen 1.3.4