#include <station.h>

Public Types | |
| enum | StationRectMode { ADD_TEST = 0, ADD_TRY, ADD_FORCE } |
Public Member Functions | |
| void | MakeEmpty () |
| bool | PtInExtendedRect (int x, int y, int distance=0) const |
| Determines whether a given point (x, y) is within a certain distance of the station rectangle. | |
| bool | IsEmpty () const |
| bool | BeforeAddTile (TileIndex tile, StationRectMode mode) |
| bool | BeforeAddRect (TileIndex tile, int w, int h, StationRectMode mode) |
| bool | AfterRemoveTile (Station *st, TileIndex tile) |
| bool | AfterRemoveRect (Station *st, TileIndex tile, int w, int h) |
| StationRect & | operator= (Rect src) |
Static Public Member Functions | |
| static bool | ScanForStationTiles (StationID st_id, int left_a, int top_a, int right_a, int bottom_a) |
Definition at line 95 of file station.h.
| bool StationRect::PtInExtendedRect | ( | int | x, | |
| int | y, | |||
| int | distance = 0 | |||
| ) | const |
Determines whether a given point (x, y) is within a certain distance of the station rectangle.
| x | X coordinate | |
| y | Y coordinate | |
| distance | The maxmium distance a point may have (L1 norm) |
Definition at line 270 of file station.cpp.
1.5.6