#include <rewardUnit.h>
Inheritance diagram for rewardSeekingUnit:
Public Member Functions | |
rewardSeekingUnit (int x, int y) | |
virtual const char * | getName () |
virtual void | receiveReward (double) |
virtual tDirection | makeMove (mapProvider *, reservationProvider *, simulationInfo *simInfo) |
The new makeMove only gives a map. | |
void | openGLDraw (mapProvider *, simulationInfo *) |
Draw the unit. | |
void | addRewardLocation (rewardUnit *) |
Private Member Functions | |
double | goToRewardLoc (mapAbstraction *aMap, int which) |
void | addPathToCache (path *p) |
Private Attributes | |
std::vector< tDirection > | moves |
std::vector< rewardUnit * > | rewardLocs |
aStar | a |
|
|
|
|
|
|
|
Reimplemented from rewardUnit. |
|
|
|
The new makeMove only gives a map. The unit simulation won't calculate an mapAbstraction unless it has to. Thus, in simple pathfinding tests, the overhead is saved. Reimplemented from unit. |
|
Draw the unit. Draw the unit using openGL. Overload this if you want a custom look for the unit. Reimplemented from rewardUnit. |
|
Reimplemented from rewardUnit. |
|
|
|
|
|
|