tagGame::Controller Class Reference

The base class for all controllers. More...

#include <Controller.h>

Inheritance diagram for tagGame::Controller:

Inheritance graph
[legend]
Collaboration diagram for tagGame::Controller:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

The base class for all controllers.


Member Function Documentation

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).


The documentation for this class was generated from the following file:
Generated on Sat Mar 31 22:30:57 2007 for tagGame by  doxygen 1.5.1