An interface for all game objects. Any object in the game must have certain properties. These properties include: having flags that indicate how the object should be drawn, a way to modify those flags, an ID for selection, coordinates in world space, a rotation, and any color that should be applied to the object.
IGameObject.h
An interface for all game objects. | |
The IGameObject destructor. | |
Standard draw flags for a game object. | |
Clones the IGameObject. | |
Resets the class name of the IGameObject. | |
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 an IGameObject from an input stream. | |
Writes an IGameObject to an output stream. |
The IGameObject destructor. | |
Standard draw flags for a game object. | |
Clones the IGameObject. | |
Resets the class name of the IGameObject. | |
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 an IGameObject from an input stream. | |
Writes an IGameObject to an output stream. |
| virtual IGameObject *Clone()=0 |
Clones the IGameObject.
A pointer to a new instance of the object.
| virtual ~IGameObject()=0 |
| virtual IGameObject *Clone()=0 |
| virtual wxString name()=0 |
| virtual void reset()=0 |
|
|
| virtual wxInt32 id() const=0 |
| virtual const Vector &coords() const=0 |
| virtual float rotation() const=0 |
| virtual ColorType color() const=0 |
|
|