Common base class for objects that lay on top of a tile. A BaseTiledObject is created with a pointer to the tile on which it lays, and the tile can be directly queried to provide game information any derived class does not want to provide. Derived classes may also provide their own special information that assists in drawing them on the screen.
BaseTiledObject.h
Common base class for objects that lay on top of a tile. | |
Clones the PortObject. | |
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 BaseTiledObject. | |
Sets the ID of the BaseTiledObject. | |
Provides the coordinates of the BaseTiledObject. | |
Sets the coordinates of the BaseTiledObject. | |
Provides the color of the BaseTiledObject. | |
Sets the color of the BaseTiledObject. | |
Loads a BaseTiledObject from an input stream. | |
Writes a BaseTiledObject to an output stream. | |
The BaseTiledObject constructor. | |
The BaseTiledObject destructor. | |
The TileObject the chip lays upon, from which it draws its location, roll value, and id. | |
The object display flags. |
Clones the PortObject. | |
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 BaseTiledObject. | |
Sets the ID of the BaseTiledObject. | |
Provides the coordinates of the BaseTiledObject. | |
Sets the coordinates of the BaseTiledObject. | |
Provides the color of the BaseTiledObject. | |
Sets the color of the BaseTiledObject. | |
Loads a BaseTiledObject from an input stream. | |
Writes a BaseTiledObject to an output stream. |
| virtual wxInt32 id() const |
Provides the ID of the BaseTiledObject. The ID is retrieved from the TileObject.
The ID of the BaseTiledObject.
|
Sets the ID of the BaseTiledObject. This function is not implemented. It is only declared to satisfy the requirements of IGameObject.
| id | The new ID. |
| virtual const Vector &coords() const |
Provides the coordinates of the BaseTiledObject. The coordinates are retrieved from the TileObject.
The coordinates of the BaseTiledObject.
|
Sets the coordinates of the BaseTiledObject. This function is not implemented. It is only declared to satisfy the requirements of IGameObject.
| coords | The new coordinates. |
|
Sets the color of the BaseTiledObject. This function is not implemented. It is only declared to satisfy the requirements of IGameObject.
| color | The new color. |
The BaseTiledObject constructor. | |
The BaseTiledObject destructor. | |
The TileObject the chip lays upon, from which it draws its location, roll value, and id. |
|
The BaseTiledObject constructor.
| pTile | A pointer to the TileObject the BaseTiledObject is built on and will refer to for game data. |
| const TileObject * const mpTile |
The TileObject the chip lays upon, from which it draws its location, roll value, and id.
| virtual IGameObject *Clone() |
| virtual void reset() |
|
|
| virtual wxInt32 id() const |
| virtual const Vector &coords() const |
| virtual ColorType color() const |
|
|
|
| virtual ~BaseTiledObject()=0 |
| const TileObject * const mpTile |
| wxInt32 mDisplayFlags |