FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Base class for all events. More...
#include <event.h>
Public Member Functions | |
Event () | |
Constructor. More... | |
virtual | ~Event () |
Destructor. More... | |
virtual void | consume () |
Marks the event as consumed. More... | |
virtual bool | isConsumed () const |
Checks if the 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 | getAttrStr () const |
Gets attribute string of the event. More... | |
virtual std::string | getDebugString () const |
Gets the debugstring of the event. More... | |
Private Attributes | |
bool | m_isConsumed |
Indicates if the event is consumed. More... | |
IEventSource * | m_eventSource |
The source of the event. More... | |
int32_t | m_timestamp |
Timestamp of the event. More... | |
|
inlinevirtual |
Marks the event as consumed.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::KeyEvent, FIFE::Command, FIFE::TextEvent, and FIFE::DropEvent.
Definition at line 64 of file event.h.
References m_isConsumed.
Referenced by FIFE::Command::consume(), and FIFE::InputEvent::consume().
|
inlinevirtual |
Gets attribute string of the event.
Reimplemented in FIFE::MouseEvent, and FIFE::InputEvent.
Definition at line 96 of file event.h.
References m_eventSource, m_isConsumed, and m_timestamp.
Referenced by FIFE::InputEvent::getAttrStr(), and getDebugString().
|
inlinevirtual |
Gets the debugstring of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::Command, FIFE::DropEvent, FIFE::KeyEvent, and FIFE::TextEvent.
Definition at line 106 of file event.h.
References getAttrStr(), and getName().
Referenced by FIFE::Command::getDebugString(), and FIFE::InputEvent::getDebugString().
|
inlinevirtual |
Gets the name of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::Command, FIFE::DropEvent, FIFE::KeyEvent, and FIFE::TextEvent.
Definition at line 89 of file event.h.
Referenced by getDebugString().
|
inlinevirtual |
Gets the source of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::KeyEvent, FIFE::Command, FIFE::DropEvent, and FIFE::TextEvent.
Definition at line 73 of file event.h.
References m_eventSource.
Referenced by FIFE::Command::getSource(), and FIFE::InputEvent::getSource().
|
inlinevirtual |
Gets the timestamp of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::Command, FIFE::DropEvent, FIFE::KeyEvent, and FIFE::TextEvent.
Definition at line 81 of file event.h.
References m_timestamp.
Referenced by FIFE::Command::getTimeStamp(), and FIFE::InputEvent::getTimeStamp().
|
inlinevirtual |
Checks if the event is consumed.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::KeyEvent, FIFE::Command, FIFE::TextEvent, and FIFE::DropEvent.
Definition at line 69 of file event.h.
References m_isConsumed.
Referenced by FIFE::Command::isConsumed(), and FIFE::InputEvent::isConsumed().
|
inlinevirtual |
Sets the source of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, FIFE::DropEvent, and FIFE::TextEvent.
Definition at line 77 of file event.h.
References m_eventSource.
Referenced by FIFE::Command::setSource(), and FIFE::InputEvent::setSource().
|
inlinevirtual |
Sets the timestamp of the event.
Reimplemented in FIFE::JoystickEvent, FIFE::MouseEvent, FIFE::InputEvent, FIFE::Command, FIFE::DropEvent, FIFE::KeyEvent, and FIFE::TextEvent.
Definition at line 85 of file event.h.
References m_timestamp.
Referenced by FIFE::Command::setTimeStamp(), and FIFE::InputEvent::setTimeStamp().
|
private |
The source of the event.
Definition at line 117 of file event.h.
Referenced by getAttrStr(), getSource(), and setSource().
|
private |
Indicates if the event is consumed.
Definition at line 115 of file event.h.
Referenced by consume(), getAttrStr(), and isConsumed().
|
private |
Timestamp of the event.
Definition at line 119 of file event.h.
Referenced by getAttrStr(), getTimeStamp(), and setTimeStamp().