FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Class for commands Commands are arbitrary events e.g. More...
#include <command.h>
Public Member Functions | |
Command () | |
Constructor. More... | |
virtual | ~Command () |
Destructor. More... | |
CommandType | getCommandType () const |
Gets the type of this command. More... | |
void | setCommandType (CommandType type) |
Sets the type of this command. More... | |
int32_t | getCode () const |
Gets the code of this command. More... | |
void | setCode (int32_t code) |
Sets the code of this command. More... | |
virtual void | consume () |
Marks events as consumed. More... | |
virtual bool | isConsumed () const |
Checks whether event is consumed. More... | |
virtual IEventSource * | getSource () const |
Gets the source of the event. More... | |
virtual void | setSource (IEventSource *source) |
Sets the source of the event. More... | |
virtual int32_t | getTimeStamp () const |
Gets the timestamp of the event. More... | |
virtual void | setTimeStamp (int32_t timestamp) |
Sets the timestamp of the event. More... | |
virtual const std::string & | getName () const |
Gets the name of the event. More... | |
virtual std::string | getDebugString () const |
Gets the debugstring of the event. More... | |
![]() | |
Event () | |
Constructor. More... | |
virtual | ~Event () |
Destructor. More... | |
virtual std::string | getAttrStr () const |
Gets attribute string of the event. More... | |
Private Attributes | |
CommandType | m_commandType |
int32_t | m_code |
Class for commands Commands are arbitrary events e.g.
send from one subsystem to another
|
inlinevirtual |
|
inlinevirtual |
Marks events as consumed.
Reimplemented from FIFE::Event.
Definition at line 77 of file command.h.
References FIFE::Event::consume().
|
inline |
|
inline |
Gets the type of this command.
Definition at line 60 of file command.h.
References m_commandType.
|
inlinevirtual |
Gets the debugstring of the event.
Reimplemented from FIFE::Event.
Definition at line 108 of file command.h.
References FIFE::Event::getDebugString().
|
inlinevirtual |
Gets the name of the event.
Reimplemented from FIFE::Event.
|
inlinevirtual |
Gets the source of the event.
Reimplemented from FIFE::Event.
Definition at line 85 of file command.h.
References FIFE::Event::getSource().
|
inlinevirtual |
Gets the timestamp of the event.
Reimplemented from FIFE::Event.
Definition at line 93 of file command.h.
References FIFE::Event::getTimeStamp().
|
inlinevirtual |
Checks whether event is consumed.
Reimplemented from FIFE::Event.
Definition at line 81 of file command.h.
References FIFE::Event::isConsumed().
Referenced by FIFE::EventManager::dispatchCommand().
|
inline |
|
inline |
Sets the type of this command.
Definition at line 64 of file command.h.
References m_commandType.
Referenced by FIFE::EventManager::processEvents(), and FIFE::EventManager::processWindowEvent().
|
inlinevirtual |
Sets the source of the event.
Reimplemented from FIFE::Event.
Definition at line 89 of file command.h.
References FIFE::Event::setSource().
Referenced by FIFE::EventManager::processEvents().
|
inlinevirtual |
Sets the timestamp of the event.
Reimplemented from FIFE::Event.
Definition at line 97 of file command.h.
References FIFE::Event::setTimeStamp().
|
private |
|
private |
Definition at line 111 of file command.h.
Referenced by getCommandType(), and setCommandType().