#include <station_type.h>
Inherited by ETileArea.
Public Member Functions | |
TileArea () | |
Just construct this tile area. | |
TileArea (TileIndex tile, uint8 w, uint8 h) | |
Construct this tile area with some set values. | |
TileArea (TileIndex start, TileIndex end) | |
Construct this tile area based on two points. | |
void | Add (TileIndex to_add) |
Add a single tile to a tile area; enlarge if needed. | |
void | Clear () |
Clears the 'tile area', i.e. | |
Data Fields | |
TileIndex | tile |
The base tile of the area. | |
uint8 | w |
The width of the area. | |
uint8 | h |
The height of the area. |
a rail station
Definition at line 95 of file station_type.h.
TileArea::TileArea | ( | TileIndex | tile, | |
uint8 | w, | |||
uint8 | h | |||
) | [inline] |
Construct this tile area with some set values.
tile | the base tile | |
w | the width | |
h | the height |
Definition at line 105 of file station_type.h.
void TileArea::Add | ( | TileIndex | to_add | ) |
Add a single tile to a tile area; enlarge if needed.
to_add | The tile to add |
Definition at line 515 of file station.cpp.
References INVALID_TILE, max(), min(), TileX(), TileXY(), and TileY().
Referenced by CmdBuildRoadStop(), and RemoveRoadStop().
void TileArea::Clear | ( | ) | [inline] |
Clears the 'tile area', i.e.
make the tile invalid.
Definition at line 127 of file station_type.h.
References h, INVALID_TILE, tile, and w.
Referenced by RemoveRoadStop().