From fc35ad9ee9077869ab7b5a06b44327c835df3e5f Mon Sep 17 00:00:00 2001 From: belugas Date: Sat, 24 May 2008 02:54:47 +0000 Subject: (svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is. Initial concept : TTDPatch (moreairpots), Initial code : Pasky Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices --- src/airport.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/airport.h') diff --git a/src/airport.h b/src/airport.h index 86305779e..0f0e8ed36 100644 --- a/src/airport.h +++ b/src/airport.h @@ -7,6 +7,7 @@ #include "direction_type.h" #include "map_type.h" +#include "tile_type.h" enum {MAX_TERMINALS = 10}; enum {MAX_HELIPADS = 4}; @@ -144,6 +145,7 @@ struct AirportFTAClass { byte nof_depots, uint size_x, uint size_y, + uint8 noise_level, byte delta_z, byte catchment ); @@ -167,6 +169,7 @@ struct AirportFTAClass { const byte *entry_points; ///< when an airplane arrives at this airport, enter it at position entry_point, index depends on direction byte size_x; byte size_y; + uint8 noise_level; ///< noise that this airport generates byte delta_z; ///< Z adjustment for helicopter pads byte catchment; }; @@ -194,4 +197,8 @@ const AirportFTAClass *GetAirport(const byte airport_type); */ uint32 GetValidAirports(); + +/* Calculate the noise this type airport will generate */ +uint8 GetAirportNoiseLevelForTown(const AirportFTAClass *afc, TileIndex town_tile, TileIndex tile); + #endif /* AIRPORT_H */ -- cgit v1.2.3-54-g00ecf