summaryrefslogtreecommitdiff
path: root/src/newgrf_station.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-17 19:44:13 +0000
committerrubidium <rubidium@openttd.org>2009-07-17 19:44:13 +0000
commit84df3ba2b40054b751fd9d39c3a9b3a7589422b8 (patch)
tree81e3445d33e5b22e9d220819eeb5ab0e608495a2 /src/newgrf_station.h
parent869fb4fa788aae6369030a14ff083b524ebb36f5 (diff)
downloadopenttd-84df3ba2b40054b751fd9d39c3a9b3a7589422b8.tar.xz
(svn r16859) -Codechange: split the Station struct into two so parts of it can be reused for Waypoints.
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r--src/newgrf_station.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h
index fa88c4064..3031a4ca9 100644
--- a/src/newgrf_station.h
+++ b/src/newgrf_station.h
@@ -131,9 +131,9 @@ uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, i
/* Get sprite offset for a given custom station and station structure (may be
* NULL - that means we are in a build dialog). The station structure is used
* for variational sprite groups. */
-SpriteID GetCustomStationRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
-SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Station *st, TileIndex tile);
-uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const Station *st, TileIndex tile);
+SpriteID GetCustomStationRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile);
+SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile);
+uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, const BaseStation *st, TileIndex tile);
/* Allocate a StationSpec to a Station. This is called once per build operation. */
int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec);
@@ -155,7 +155,7 @@ enum StatAnimTrigger {
};
void AnimateStationTile(TileIndex tile);
-void StationAnimationTrigger(const Station *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID);
-void StationUpdateAnimTriggers(Station *st);
+void StationAnimationTrigger(const BaseStation *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID);
+void StationUpdateAnimTriggers(BaseStation *st);
#endif /* NEWGRF_STATION_H */