summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-18 23:12:38 +0000
committeryexo <yexo@openttd.org>2010-03-18 23:12:38 +0000
commit38f4cb64699af17b3456b93157eb528d6532b46d (patch)
treed2a6a9f247738a42f24309155a0e40af43362cb9 /src/newgrf_commons.h
parenta99a7e7a3784ce6678f8ce2402473133efe511e5 (diff)
downloadopenttd-38f4cb64699af17b3456b93157eb528d6532b46d.tar.xz
(svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index a6b94e2e2..d5b9d9901 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -97,6 +97,15 @@ public:
void SetEntitySpec(const IndustryTileSpec *indts);
};
+struct AirportSpec;
+class AirportOverrideManager : public OverrideManagerBase {
+public:
+ AirportOverrideManager(uint16 offset, uint16 maximum, uint16 invalid) :
+ OverrideManagerBase(offset, maximum, invalid) {}
+
+ void SetEntitySpec(AirportSpec *inds);
+};
+
struct AirportTileSpec;
class AirportTileOverrideManager : public OverrideManagerBase {
protected:
@@ -111,6 +120,7 @@ public:
extern HouseOverrideManager _house_mngr;
extern IndustryOverrideManager _industry_mngr;
extern IndustryTileOverrideManager _industile_mngr;
+extern AirportOverrideManager _airport_mngr;
extern AirportTileOverrideManager _airporttile_mngr;
uint32 GetTerrainType(TileIndex tile);