#include <searchUnit.h>
Inheritance diagram for searchUnit:
Public Member Functions | |
searchUnit (int x, int y, unit *target, searchAlgorithm *alg) | |
searchUnit (int x, int y, unit *target, spreadExecSearchAlgorithm *alg) | |
searchUnit (int _x, int _y, int _r, int _g, int _b, unit *_target, searchAlgorithm *alg) | |
searchUnit (int _x, int _y, float _r, float _g, float _b, unit *_target, searchAlgorithm *alg) | |
virtual | ~searchUnit () |
virtual const char * | getName () |
virtual searchAlgorithm * | getAlgorithm () |
virtual bool | done () |
virtual tDirection | makeMove (mapProvider *, reservationProvider *, simulationInfo *simInfo) |
The new makeMove only gives a map. | |
virtual 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 | |
virtual void | openGLDraw (mapProvider *, simulationInfo *) |
Draw the unit. | |
void | logStats (statCollection *stats) |
log an stats that may have been computed during the last run | |
void | logFinalStats (statCollection *stats) |
log any final one-time stats before a simulation is ended | |
Protected Member Functions | |
virtual void | addPathToCache (path *p) |
bool | getCachedMove (tDirection &dir) |
Protected Attributes | |
int | nodesExpanded |
int | nodesTouched |
std::vector< tDirection > | moves |
searchAlgorithm * | algorithm |
spreadExecSearchAlgorithm * | s_algorithm |
path * | spread_cache |
double | targetTime |
bool | onTarget |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from unit. Reimplemented in KoenigsUnit, LRTAStarUnit, patUnit, PrioritizedUnit, and PRLRTSkUnit. |
|
|
|
|
|
Reimplemented from unit. Reimplemented in KoenigsUnit, PrioritizedUnit, PRLRTSkUnit, and praStarUnit. |
|
log any final one-time stats before a simulation is ended
Reimplemented from unit. |
|
log an stats that may have been computed during the last run No stats collected by default. Reimplemented from unit. Reimplemented in KoenigsUnit, PrioritizedUnit, and PRLRTSkUnit. |
|
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. Reimplemented in KoenigsUnit, LRTAStarUnit, PrioritizedUnit, PRLRTSkUnit, and praStarUnit. |
|
Draw the unit. Draw the unit using openGL. Overload this if you want a custom look for the unit. 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. |
|
Reimplemented in KoenigsUnit, LRTAStarUnit, PrioritizedUnit, PRLRTSkUnit, and praStarUnit. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|