#include <AIState.h>
Classes | |
class | Listener |
Public Member Functions | |
const char * | getId () const |
void | setListener (Listener *listener) |
Static Public Member Functions | |
static AIState * | create (const char *id) |
Defines a single state in an AIStateMachine.
An AIState encapsulates a state and unit of work within an AI state machine. Events can be programmed or scripted when the state is entered, exited and each frame/tick in its update event.
static AIState* gameplay::AIState::create | ( | const char * | id | ) | [static] |
const char* gameplay::AIState::getId | ( | ) | const |
Returns the ID of this state.
void gameplay::AIState::setListener | ( | Listener * | listener | ) |
Sets a listener to dispatch state events to.
listener | Listener to dispatch state events to, or NULL to disable event dispatching. |