#include <AIAgent.h>
Public Member Functions | |
virtual | ~Listener () |
virtual bool | messageReceived (AIMessage *message)=0 |
Interface for listening to AIAgent events.
virtual gameplay::AIAgent::Listener::~Listener | ( | ) | [inline, virtual] |
Virtual destructor.
virtual bool gameplay::AIAgent::Listener::messageReceived | ( | AIMessage * | message | ) | [pure virtual] |
Called when a new message is sent to the AIAgent.
Both global/broadcast messages and messages sent explicitly to the AIAgent are sent through this method. Returning true from this method will mark the message as handled and it will dispose of the message and prevent any other possible recipients from receiving the message. Alternatively, returning false allows the message to continue being routed though the AI system.
message | The message received. |