Event Class Reference

#include <Event.h>

List of all members.

Public Member Functions

 Event ()
 Event (double time, int playerId, int type, int xpos, int ypos)
double getTimeStamp () const
void setTimeStamp (double time)
bool operator< (const Event event) const

Public Attributes

int type
double timestamp
int playerId
int xpos
int ypos


Constructor & Destructor Documentation

Event::Event (  ) 

00018              {
00019 }

Event::Event ( double  time,
int  playerId,
int  type,
int  xpos,
int  ypos 
)

00021                                                                     {
00022         this->timestamp=time;
00023         this->playerId = playerId;
00024         this->xpos = xpos;
00025         this->ypos = ypos;
00026         this->type = type;
00027 }


Member Function Documentation

double Event::getTimeStamp (  )  const

00029                                  {
00030         return timestamp;
00031 }

void Event::setTimeStamp ( double  time  ) 

00032                                     {
00033         timestamp=time;
00034 }

bool Event::operator< ( const Event  event  )  const

00035                                              {
00036         if ( timestamp < event.getTimeStamp() ) return true;
00037         return false;
00038 }


Member Data Documentation

int Event::type

double Event::timestamp

int Event::playerId

int Event::xpos

int Event::ypos


The documentation for this class was generated from the following files:
Generated on Thu Apr 17 13:19:28 2008 for ITM OverSim by  doxygen 1.5.3