22 #ifndef FIFE_EVENTCHANNEL_COMMAND_H
23 #define FIFE_EVENTCHANNEL_COMMAND_H
76 virtual const std::string&
getName()
const {
77 const static std::string eventName(
"Command");
virtual const std::string & getName() const
Gets the name of the event.
virtual void consume()
Marks the event as consumed.
virtual bool isConsumed() const
Checks if the event is consumed.
virtual void setSource(IEventSource *source)
Sets the source of the event.
virtual void setSource(IEventSource *source)
Sets the source of the event.
CommandType
Types for different commands.
Base class for all events.
virtual std::string getDebugString() const
Gets the debugstring of the event.
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
virtual IEventSource * getSource() const
Gets the source of the event.
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.
CommandType m_commandtype
Class for commands Commands are arbitrary events e.g.
CommandType getCommandType() const
Gets the type of this command.
void setCommandType(CommandType type)
void setCode(int32_t code)
virtual ~Command()
Destructor.
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
virtual std::string getDebugString() const
Gets the debugstring of the event.
virtual IEventSource * getSource() const
Gets the source of the event.
Representation of event source (a thing sending events)
virtual void consume()
Marks the event as consumed.
int32_t getCode() const
Gets the code of this command.
virtual bool isConsumed() const
Checks if the event is consumed.