src/newgrf_station.h
branchnoai
changeset 9694 e72987579514
parent 9599 949374e83b78
child 6872 1c4a4a609f85
child 8626 440dfcd14c4a
equal deleted inserted replaced
9693:31fcaa5375a1 9694:e72987579514
     4 
     4 
     5 #ifndef NEWGRF_STATION_H
     5 #ifndef NEWGRF_STATION_H
     6 #define NEWGRF_STATION_H
     6 #define NEWGRF_STATION_H
     7 
     7 
     8 #include "engine.h"
     8 #include "engine.h"
       
     9 #include "newgrf_callbacks.h"
     9 #include "newgrf_cargo.h"
    10 #include "newgrf_cargo.h"
    10 #include "helpers.hpp"
    11 #include "helpers.hpp"
    11 
    12 
    12 enum StationClassID {
    13 enum StationClassID {
    13 	STAT_CLASS_BEGIN = 0,    ///< the lowest valid value
    14 	STAT_CLASS_BEGIN = 0,    ///< the lowest valid value
   115 /* Get sprite offset for a given custom station and station structure (may be
   116 /* Get sprite offset for a given custom station and station structure (may be
   116  * NULL - that means we are in a build dialog). The station structure is used
   117  * NULL - that means we are in a build dialog). The station structure is used
   117  * for variational sprite groups. */
   118  * for variational sprite groups. */
   118 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
   119 SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
   119 SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
   120 SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
   120 uint16 GetStationCallback(uint16 callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile);
   121 uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile);
   121 
   122 
   122 /* Check if a rail station tile is traversable. */
   123 /* Check if a rail station tile is traversable. */
   123 bool IsStationTileBlocked(TileIndex tile);
   124 bool IsStationTileBlocked(TileIndex tile);
   124 
   125 
   125 /* Check if a rail station tile is electrifiable. */
   126 /* Check if a rail station tile is electrifiable. */