diff options
Diffstat (limited to 'src/airport.h')
-rw-r--r-- | src/airport.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ |