HistoryPoint Class Reference
[Game Data]

Class that contains network- and interpolation-relevant data of object. More...

#include <history.h>

Inherited by TanksHistoryPoint.

Inheritance diagram for HistoryPoint:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 HistoryPoint ()
virtual ~HistoryPoint ()
bool operator== (HistoryPoint &hp)

Public Attributes

GLVector3d mPosition
GLQuaterniond mOrientation
GLVector3d mSpeed
int mTimeStamp
int mID

Private Member Functions

bool dblEqual (const double a, const double b) const
 Checks for equality of doubles with some tollerance.
bool vecEqual (const GLVector3d &a, const GLVector3d &b) const
 Checks for equality of vectors with some tollerance.

Detailed Description

Class that contains network- and interpolation-relevant data of object.

Definition at line 16 of file history.h.


Constructor & Destructor Documentation

HistoryPoint::HistoryPoint  )  [inline]
 

Definition at line 19 of file history.h.

virtual HistoryPoint::~HistoryPoint  )  [inline, virtual]
 

Definition at line 20 of file history.h.


Member Function Documentation

bool HistoryPoint::dblEqual const double  a,
const double  b
const [inline, private]
 

Checks for equality of doubles with some tollerance.

Parameters:
a One of numbers
b One of numbers
Returns:
True if aprox. equal

Definition at line 47 of file history.h.

References DBL_TOLER.

Referenced by operator==(), and vecEqual().

bool HistoryPoint::operator== HistoryPoint hp  )  [inline]
 

Definition at line 31 of file history.h.

References dblEqual(), mID, mOrientation, mPosition, mSpeed, and vecEqual().

Here is the call graph for this function:

bool HistoryPoint::vecEqual const GLVector3d &  a,
const GLVector3d &  b
const [inline, private]
 

Checks for equality of vectors with some tollerance.

Parameters:
a One of vectors
b One of vectors
Returns:
True if aprox. equal

Definition at line 58 of file history.h.

References dblEqual().

Referenced by operator==().

Here is the call graph for this function:


Member Data Documentation

int HistoryPoint::mID
 

Definition at line 28 of file history.h.

Referenced by WorldEntity::createPresentPoint(), Tank::createPresentPoint(), and operator==().

GLQuaterniond HistoryPoint::mOrientation
 

Definition at line 24 of file history.h.

Referenced by WorldEntity::createPresentPoint(), Tank::createPresentPoint(), and operator==().

GLVector3d HistoryPoint::mPosition
 

Definition at line 20 of file history.h.

Referenced by WorldEntity::createPresentPoint(), Tank::createPresentPoint(), and operator==().

GLVector3d HistoryPoint::mSpeed
 

Definition at line 25 of file history.h.

Referenced by WorldEntity::createPresentPoint(), Tank::createPresentPoint(), and operator==().

int HistoryPoint::mTimeStamp
 

Definition at line 27 of file history.h.

Referenced by WorldEntity::createPresentPoint(), and Tank::createPresentPoint().


The documentation for this class was generated from the following file:
Generated on Wed Apr 12 14:17:28 2006 for bjs by  doxygen 1.4.5