100 * NULL - that means we are in a build dialog). The station structure is used |
100 * NULL - that means we are in a build dialog). The station structure is used |
101 * for variational sprite groups. */ |
101 * for variational sprite groups. */ |
102 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile); |
102 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile); |
103 uint16 GetStationCallback(uint16 callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile); |
103 uint16 GetStationCallback(uint16 callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile); |
104 |
104 |
|
105 /* Check if a rail station tile is traversable. */ |
|
106 bool IsStationTileBlocked(TileIndex tile); |
|
107 |
105 /* Allocate a StationSpec to a Station. This is called once per build operation. */ |
108 /* Allocate a StationSpec to a Station. This is called once per build operation. */ |
106 int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec); |
109 int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec); |
107 |
110 |
108 /* Deallocate a StationSpec from a Station. Called when removing a single station tile. */ |
111 /* Deallocate a StationSpec from a Station. Called when removing a single station tile. */ |
109 bool DeallocateSpecFromStation(Station *st, byte specindex); |
112 bool DeallocateSpecFromStation(Station *st, byte specindex); |