30 #ifndef AI_AGENT_STATE
31 #define AI_AGENT_STATE
39 #define PERCEPT_RESET 0 // percept is reset (called once, on event)
40 #define PERCEPT_SET 1 // percept is set (called once, on event)
41 #define PERCEPT_HOLD 2 // percept is set (called continually, while set)
66 class aiAgent* agent() {
return _agent; }
73 virtual void perceive(
unsigned state, M_BOOL global,
unsigned id, aiPerceptData data) = 0;
74 virtual void perceive_active( std::string strID_Old ) = 0;
75 virtual void perceive_inactive( std::string strID_New ) = 0;
Single state of the AI-controlled creature.
Abstract base class for AI agents.
Interface for loadable objects.
Class aiController is an abstract class for behaviours which can be performed by objects.