OpenTTD Source 20241224-master-gf74b0cf984
|
Public Member Functions | |
ETileArea (const BaseStation *st, TileIndex tile, TriggerArea ta) | |
Public Member Functions inherited from OrthogonalTileArea | |
OrthogonalTileArea (TileIndex tile=INVALID_TILE, uint16_t w=0, uint16_t h=0) | |
Construct this tile area with some set values. | |
OrthogonalTileArea (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. | |
bool | Intersects (const OrthogonalTileArea &ta) const |
Does this tile area intersect with another? | |
bool | Contains (TileIndex tile) const |
Does this tile area contain a tile? | |
OrthogonalTileArea & | Expand (int rad) |
Expand a tile area by rad tiles in each direction, keeping within map bounds. | |
void | ClampToMap () |
Clamp the tile area to map borders. | |
TileIndex | GetCenterTile () const |
Get the center tile. | |
OrthogonalTileIterator | begin () const |
Returns an iterator to the beginning of the tile area. | |
OrthogonalTileIterator | end () const |
Returns an iterator to the end of the tile area. | |
Additional Inherited Members | |
Data Fields inherited from OrthogonalTileArea | |
TileIndex | tile |
The base tile of the area. | |
uint16_t | w |
The width of the area. | |
uint16_t | h |
The height of the area. | |
Definition at line 58 of file newgrf_station.cpp.
|
inline |
Definition at line 59 of file newgrf_station.cpp.