FIFE
2008.0
|
#include <ec_command.h>
Public Member Functions | |
Command () | |
virtual | ~Command () |
CommandType | getCommandType () const |
int | getCode () const |
virtual void | consume () |
virtual bool | isConsumed () const |
virtual void | setSource (IEventSource *source) |
virtual int | getTimeStamp () const |
virtual void | setTimeStamp (int timestamp) |
virtual const std::string & | getName () const |
virtual std::string | getDebugString () const |
Class for commands Commands are arbitrary events e.g. send from one subsystem to another
Definition at line 44 of file ec_command.h.
FIFE::Command::Command | ( | ) | [inline] |
Constructor.
Definition at line 48 of file ec_command.h.
virtual FIFE::Command::~Command | ( | ) | [inline, virtual] |
Destructor.
Definition at line 55 of file ec_command.h.
virtual void FIFE::Command::consume | ( | ) | [inline, virtual] |
Marks the event as consumed.
Reimplemented from FIFE::Event.
Definition at line 69 of file ec_command.h.
int FIFE::Command::getCode | ( | ) | const [inline] |
Gets the code of this command. Meaning of code depends on the command type
Definition at line 66 of file ec_command.h.
CommandType FIFE::Command::getCommandType | ( | ) | const [inline] |
Gets the type of this command
Definition at line 60 of file ec_command.h.
virtual std::string FIFE::Command::getDebugString | ( | ) | const [inline, virtual] |
Gets the debugstring of the event
Reimplemented from FIFE::Event.
Definition at line 80 of file ec_command.h.
virtual const std::string& FIFE::Command::getName | ( | ) | const [inline, virtual] |
Gets the name of the event
Reimplemented from FIFE::Event.
Definition at line 76 of file ec_command.h.
virtual int FIFE::Command::getTimeStamp | ( | ) | const [inline, virtual] |
Gets the timestamp of the event
Reimplemented from FIFE::Event.
Definition at line 73 of file ec_command.h.
virtual bool FIFE::Command::isConsumed | ( | ) | const [inline, virtual] |
Checks if the event is consumed.
Reimplemented from FIFE::Event.
Definition at line 70 of file ec_command.h.
Referenced by FIFE::EventManager::dispatchCommand().
virtual void FIFE::Command::setSource | ( | IEventSource * | source | ) | [inline, virtual] |
Sets the source of the event.
Reimplemented from FIFE::Event.
Definition at line 72 of file ec_command.h.
Referenced by FIFE::EventManager::processEvents().
virtual void FIFE::Command::setTimeStamp | ( | int | timestamp | ) | [inline, virtual] |
Sets the timestamp of the event
Reimplemented from FIFE::Event.
Definition at line 74 of file ec_command.h.