Represents one hexagonally-shaped tile on the board. The board itself is made up of an array of TileObjects. All TileObjects have an index, a roll value (which may be -1 to indicate no roll), port corners (if the tile is a port), a port side (if the tile has a fixed orientation), a border flag (if the tile is one of the edges of the map), a tile type, and an array of integers that are the indices of other tiles that surround the tile. A -1 along a tile’s side indicates that there is no tile bordering there (i.e., it is the edge of the map).
Other plugins may add more data fields to a tile based on their needs, by using the extensibility of the hash-map based Data class.
TileObject.h
Represents one hexagonally-shaped tile on the board. | |
The TileObject constructor. | |
Custom draw flags for a TileObject. | |
Returns the ChipObject that lays atop this tile. | |
Returns the PortObject that lays atop this tile. | |
Randomizes the rotation of this tile. | |
Creates or destroys the ChipObject for this TileObject. | |
Creates or destroys the PortObject for this TileObject. | |
Clones the TileObject. | |
Resets the class name of the TileObject. | |
Resets the display flags. | |
Turns a specific display flag on. | |
Loads a TileObject from an input stream. | |
Writes a TileObject to an output stream. | |
The ChipObject that lays atop this TileObject. | |
The PortObject that lays atop this TileObject. |
The TileObject constructor. | |
Custom draw flags for a TileObject. | |
Returns the ChipObject that lays atop this tile. | |
Returns the PortObject that lays atop this tile. | |
Randomizes the rotation of this tile. | |
Creates or destroys the ChipObject for this TileObject. | |
Creates or destroys the PortObject for this TileObject. | |
Clones the TileObject. | |
Resets the class name of the TileObject. | |
Resets the display flags. | |
Turns a specific display flag on. | |
Loads a TileObject from an input stream. | |
Writes a TileObject to an output stream. |
|
Creates or destroys the ChipObject for this TileObject. Only one ChipObject can exist at a time on a TileObject.
| show | A flag to determine whether the ChipObject should be created or destroyed. If true, the ChipObject should be created. If false, destroyed. |
|
Creates or destroys the PortObject for this TileObject. Only one PortObject can exist at a time on a TileObject.
| show | A flag to determine whether the PortObject should be created or destroyed. If true, the PortObject should be created. If false, destroyed. |
| virtual void reset() |
Resets the display flags. Also resets display flags for any ChipObject or PortObject on the tile.
|
Turns a specific display flag on. Also turns the flag on for any ChipObject or PortObject on the tile.
| flag | The display flag to turn on. |
The ChipObject that lays atop this TileObject. | |
The PortObject that lays atop this TileObject. |
| ChipObjectPtr mChipObject |
The ChipObject that lays atop this TileObject. May be NULL.
| PortObjectPtr mPortObject |
The PortObject that lays atop this TileObject. May be NULL.
|
| const ChipObjectPtr &chip() const |
| const PortObjectPtr &port() const |
| void randomizeRotation() |
|
|
| virtual IGameObject *Clone() |
| virtual wxString name() |
| virtual void reset() |
|
|
|
| ChipObjectPtr mChipObject |
| PortObjectPtr mPortObject |