GameEngine::Event Class Reference

#include <Event.h>

Inheritance diagram for GameEngine::Event:

Inheritance graph
[legend]
Collaboration diagram for GameEngine::Event:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for game events

Definition at line 41 of file Event.h.

Public Member Functions

 Event (EventType eventType, double eventTime=0, IEventDataPtr userData=IEventDataPtr((IEventData *) NULL))
virtual ~Event ()
const EventTypegetEventType () const
double getEventTime () const
IEventDataPtr getData () const
void setId (const std::string &id)
const std::string & getId () const
template<typename T>
T * getDataPtr () const

Private Attributes

EventType mEventType
double mEventTime
IEventDataPtr mUserData
std::string mId


Constructor & Destructor Documentation

GameEngine::Event::Event ( EventType  eventType,
double  eventTime = 0,
IEventDataPtr  userData = IEventDataPtr((IEventData*)NULL) 
) [inline]

Definition at line 43 of file Event.h.

virtual GameEngine::Event::~Event (  )  [inline, virtual]

Definition at line 51 of file Event.h.


Member Function Documentation

const EventType& GameEngine::Event::getEventType (  )  const [inline]

Definition at line 53 of file Event.h.

double GameEngine::Event::getEventTime (  )  const [inline]

Definition at line 54 of file Event.h.

IEventDataPtr GameEngine::Event::getData (  )  const [inline]

Definition at line 55 of file Event.h.

void GameEngine::Event::setId ( const std::string &  id  )  [inline]

Definition at line 57 of file Event.h.

const std::string& GameEngine::Event::getId (  )  const [inline]

Definition at line 58 of file Event.h.

template<typename T>
T* GameEngine::Event::getDataPtr (  )  const [inline]

Definition at line 61 of file Event.h.


Member Data Documentation

EventType GameEngine::Event::mEventType [private]

Definition at line 64 of file Event.h.

double GameEngine::Event::mEventTime [private]

Definition at line 65 of file Event.h.

IEventDataPtr GameEngine::Event::mUserData [private]

Definition at line 66 of file Event.h.

std::string GameEngine::Event::mId [private]

Definition at line 67 of file Event.h.


The documentation for this class was generated from the following file:
Generated on Thu Apr 19 09:48:42 2007 for GameEngine by  doxygen 1.5.2