#include <Controller.h>
Inheritance diagram for tagGame::Controller:


Public Member Functions | |
| Controller (PerceptionPtr perception) | |
| virtual void | calcAction ()=0 |
| Calculate an action. | |
| Action const & | getAction () |
| Get the last computed action. | |
| void | setAction (Action const &action) |
| Overide the last computed action. | |
| PerceptionPtr | getPerception () |
| Get a pointer to the current perception object. | |
| void | setPerception (PerceptionPtr perception) |
| Use a new perception object. | |
Protected Attributes | |
| PerceptionPtr | perception |
| Action | action |
| void tagGame::Controller::setPerception | ( | PerceptionPtr | perception | ) | [inline] |
Use a new perception object.
Being able to swap in different perception objects can be used for some interesting AI effects (see Chapter 3 for more details).
1.5.1