A default implementation of the IGameObject interface. GameObject provides a default class for handling all of the functionality needed in a game object. Most objects in the game should derive from it. It fulfills all of the requirements of the IGameObject interface.
GameObject.h
A default implementation of the IGameObject interface. | |
The GameObject constructor. | |
Resets the display flags. | |
Reports if a specific display flag is set. | |
Reports if a custom display flag is set. | |
Turns a specific display flag on. | |
Turns a custom display flag on. | |
Provides the ID of the object. | |
Sets the ID of the object. | |
Provides the coordinates of the object. | |
Sets the coordinates of the object. | |
Provides the rotation of the object. | |
Sets the rotation of the object. | |
Provides the color of the object. | |
Sets the color of the object. | |
Loads a GameObject from an input stream. | |
Writes a GameObject to an output stream. | |
The object display flags. | |
The object ID. | |
The coordinates in world space. | |
The local rotation of the object. |
The GameObject constructor. | |
Resets the display flags. | |
Reports if a specific display flag is set. | |
Reports if a custom display flag is set. | |
Turns a specific display flag on. | |
Turns a custom display flag on. | |
Provides the ID of the object. | |
Sets the ID of the object. | |
Provides the coordinates of the object. | |
Sets the coordinates of the object. | |
Provides the rotation of the object. | |
Sets the rotation of the object. | |
Provides the color of the object. | |
Sets the color of the object. | |
Loads a GameObject from an input stream. | |
Writes a GameObject to an output stream. |
| virtual ColorType color() const |
Provides the color of the object. Not implemented in this class, but provided with a non-sensical return value so that the requirements of IGameObject are satisfied. Derived classes can override this function if they require color settings.
A non-sensical color value.
| GameObject() |
| virtual void reset() |
|
|
| virtual wxInt32 id() const |
| virtual const Vector &coords() const |
| virtual float rotation() const |
| virtual ColorType color() const |
|
|
| wxInt32 mDisplayFlags |
| wxInt32 mID |
| Vector mCoords |
| float mRotation |