22 #ifndef FIFE_EVENTCHANNEL_COMMAND_H
23 #define FIFE_EVENTCHANNEL_COMMAND_H
36 #include "eventchannel/base/ec_event.h"
37 #include "ec_commandids.h"
50 m_commandtype(CMD_UNKNOWN),
61 void setCommandType(
CommandType type) { m_commandtype = type; }
66 int32_t
getCode()
const {
return m_code; }
67 void setCode(int32_t code) { m_code = code; }
76 virtual const std::string&
getName()
const {
77 const static std::string eventName(
"Command");
virtual const std::string & getName() const
virtual bool isConsumed() const
virtual void setSource(IEventSource *source)
virtual void setSource(IEventSource *source)
virtual std::string getDebugString() const
virtual int32_t getTimeStamp() const
virtual void setTimeStamp(int32_t timestamp)
virtual IEventSource * getSource() const
virtual int32_t getTimeStamp() const
CommandType getCommandType() const
virtual void setTimeStamp(int32_t timestamp)
virtual std::string getDebugString() const
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...
virtual bool isConsumed() const