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. */ |