newgrf_station.h
changeset 3766 f0077e6b6f99
parent 3765 e057e2b740d4
child 3767 2c8990ba0313
equal deleted inserted replaced
3765:e057e2b740d4 3766:f0077e6b6f99
   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);