#include <unit.h>
Inheritance diagram for billiardBallUnit:
Public Member Functions | |
billiardBallUnit (int _x, int _y, int _coolOffPeriod, double _probDirChange) | |
billiardBallUnit (int _x, int _y, int _r, int _g, int _b) | |
tDirection | makeMove (mapProvider *mp, reservationProvider *rp, simulationInfo *simInfo) |
Make a move. | |
void | updateLocation (int _x, int _y, bool, simulationInfo *) |
Set location after last move. | |
virtual const char * | getName () |
Private Attributes | |
int | lastIndex |
int | collisionStatus |
double | probDirChange |
int | coolOffPeriod |
|
|
|
|
|
Reimplemented from unit. |
|
Make a move. the billiard ball unit keeps following the same direction until either a collision or instability Reimplemented from unit. |
|
Set location after last move. if the billiard ball unit collides, it will cool off for a period of time otherwise, it may changes its mind if it unstable Reimplemented from unit. |
|
|
|
|
|
|
|
|