Object Class Reference

#include <object.hpp>

Inheritance diagram for Object:

Thing Item MovingObject Being Character Monster List of all members.

Detailed Description

Generic client-visible object definition.

Keeps track of position and what to update clients about.

Definition at line 46 of file object.hpp.

Public Member Functions

 Object (int type)
 Constructor.
void setPosition (const Point &p)
 Sets the coordinates.
Point const & getPosition () const
 Gets the coordinates.
int getUpdateFlags () const
 Gets what changed in the object.
void raiseUpdateFlags (int n)
 Sets some changes in the object.
void clearUpdateFlags ()
 Clears changes in the object.

Private Attributes

char mUpdateFlags
 Changes in object status.
Point mPos
 Coordinates.


Constructor & Destructor Documentation

Object::Object int  type  )  [inline]
 

Constructor.

Definition at line 52 of file object.hpp.


Member Function Documentation

void Object::clearUpdateFlags  )  [inline]
 

Clears changes in the object.

Definition at line 88 of file object.hpp.

Point const& Object::getPosition  )  const [inline]
 

Gets the coordinates.

Returns:
the coordinates.

Reimplemented in Character.

Definition at line 70 of file object.hpp.

int Object::getUpdateFlags  )  const [inline]
 

Gets what changed in the object.

Definition at line 76 of file object.hpp.

void Object::raiseUpdateFlags int  n  )  [inline]
 

Sets some changes in the object.

Definition at line 82 of file object.hpp.

void Object::setPosition const Point p  )  [inline]
 

Sets the coordinates.

Parameters:
p the coordinates.

Reimplemented in Character.

Definition at line 62 of file object.hpp.


Member Data Documentation

Point Object::mPos [private]
 

Coordinates.

Definition at line 93 of file object.hpp.

char Object::mUpdateFlags [private]
 

Changes in object status.

Definition at line 92 of file object.hpp.


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 15:39:18 2007 for TMW Server by  doxygen 1.3.9.1