summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
Diffstat (limited to 'station.h')
-rw-r--r--station.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/station.h b/station.h
index b8759e49f..3f395143f 100644
--- a/station.h
+++ b/station.h
@@ -1,6 +1,7 @@
#ifndef STATION_H
#define STATION_H
+#include "engine.h"
#include "vehicle.h"
typedef struct GoodsEntry {
@@ -117,6 +118,10 @@ struct StationSpec {
byte tiles;
DrawTileSprites renderdata[8];
+
+ /* Sprite offsets for renderdata->seq->image. relocation[0] is default
+ * whilst relocation[1] is "CID_PURCHASE". */
+ struct SpriteGroup relocation[2];
};
/* Here, @stid is local per-GRFFile station index. If spec->localidx is not yet
@@ -126,7 +131,8 @@ struct StationSpec {
void SetCustomStation(byte stid, struct StationSpec *spec);
/* Here, @stid is global station index (in continous range 0..GetCustomStationsCount())
* (lookup is therefore very fast as we do this very frequently). */
-DrawTileSprites *GetCustomStationRenderdata(uint32 classid, byte stid);
+struct StationSpec *GetCustomStation(uint32 classid, byte stid);
+uint32 GetCustomStationRelocation(struct StationSpec *spec, byte ctype);
int GetCustomStationsCount(uint32 classid);
#endif /* STATION_H */