src/airport.h
changeset 10682 3b753d908205
parent 10131 eac377878aa0
--- a/src/airport.h	Fri May 23 23:02:13 2008 +0000
+++ b/src/airport.h	Sat May 24 02:54:47 2008 +0000
@@ -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 @@
 			byte nof_depots,
 			uint size_x,
 			uint size_y,
+			uint8 noise_level,
 			byte delta_z,
 			byte catchment
 		);
@@ -167,6 +169,7 @@
 	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 @@
  */
 uint32 GetValidAirports();
 
+
+/* Calculate the noise this type airport will generate */
+uint8 GetAirportNoiseLevelForTown(const AirportFTAClass *afc, TileIndex town_tile, TileIndex tile);
+
 #endif /* AIRPORT_H */