#include <patUnit.h>
Inheritance diagram for patUnit:


Public Member Functions | |
| patUnit (int startX, int startY, unit *goal, PRLRTSk *alg, int trMax) | |
| tDirection | makeMove (mapProvider *mapProv, reservationProvider *reservationProv, simulationInfo *simInfo, PRLRTSkGroup *group) |
| The main procedure --- make move. | |
| bool | done () |
| The unit is done when the amount of learning on the trial is 0.0 and no tiles are explored by wA*. | |
| void | setAlgorithm (patPRLRTSk *alg) |
| void | clearCache () |
| void | setTeleport (int destX, int destY) |
| void | setTeleport () |
| bool | getOnGoal () |
| void | incTrialCount () |
| int | getAlgDepth () |
| void | resetAlgPathGot () |
| bool | getAlgPathGot () |
| void | resetErrorMove () |
| void | addErrorMove (bool error) |
| long | getErrorCount () |
| long | getMoveCount () |
Protected Attributes | |
| bool | moveMade |
| bool | willTeleport |
| int | trialMax |
| int | trialCount |
| long | statErrorCount |
| long | statMoveCount |
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
The unit is done when the amount of learning on the trial is 0.0 and no tiles are explored by wA*.
Reimplemented from PRLRTSkUnit. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
The main procedure --- make move.
Reimplemented from PRLRTSkUnit. |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.4