summaryrefslogtreecommitdiff
path: root/src/newgrf_airporttiles.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:15:48 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:15:48 +0000
commit683ad53d21871e49bd8f6071db25e8ab1ad4485b (patch)
tree2ceff6d0297c9f2f4163d14ea0224ea9a9f68560 /src/newgrf_airporttiles.h
parent3530156e15b6770894a6e07d065f4f771934e83a (diff)
downloadopenttd-683ad53d21871e49bd8f6071db25e8ab1ad4485b.tar.xz
(svn r19193) -Codechange: increase the maximum number of airport tiles to 256 and introduce AirportTileOverrideManager
Diffstat (limited to 'src/newgrf_airporttiles.h')
-rw-r--r--src/newgrf_airporttiles.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/newgrf_airporttiles.h b/src/newgrf_airporttiles.h
index 8c38da661..0cf148357 100644
--- a/src/newgrf_airporttiles.h
+++ b/src/newgrf_airporttiles.h
@@ -13,6 +13,8 @@
#define NEWGRF_AIRPORTTILES_H
#include "station_map.h"
+#include "newgrf_commons.h"
+#include "airport.h"
/**
* Defines the data structure of each indivudual tile of an airport.
@@ -21,7 +23,17 @@ struct AirportTileSpec {
uint16 animation_info; ///< Information about the animation (is it looping, how many loops etc)
uint8 animation_speed; ///< The speed of the animation
+ bool enabled; ///< entity still available (by default true). newgrf can disable it, though
+ GRFFileProps grf_prop; ///< properties related the the grf file
+
static const AirportTileSpec *Get(StationGfx gfx);
+
+ static void ResetAirportTiles();
+
+private:
+ static AirportTileSpec tiles[NUM_AIRPORTTILES];
+
+ friend void AirportTileOverrideManager::SetEntitySpec(const AirportTileSpec *airpts);
};
#endif /* NEWGRF_AIRPORTTILES_H */