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