Changeset - r12046:154b978eca1e
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-05-28 21:54:03
smatz@openttd.org
(svn r16458) -Codechange: use one enum instead of four
1 file changed with 9 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/airport.h
Show inline comments
 
@@ -6,18 +6,20 @@
 
#define AIRPORT_H
 

	
 
#include "direction_type.h"
 
#include "map_type.h"
 
#include "tile_type.h"
 

	
 
enum {MAX_TERMINALS =  10};
 
enum {MAX_HELIPADS  =   4};
 
enum {MAX_ELEMENTS  = 255};
 
enum {MAX_HEADINGS  =  22};
 
/** Current limits for airports */
 
enum {
 
	MAX_TERMINALS =  10, ///< maximum number of terminals per airport
 
	MAX_HELIPADS  =   4, ///< maximum number of helipads per airport
 
	MAX_ELEMENTS  = 255, ///< maximum number of aircraft positions at airport
 
};
 

	
 
/* Airport types */
 
/** Airport types */
 
enum {
 
	AT_SMALL         =   0,
 
	AT_LARGE         =   1,
 
	AT_HELIPORT      =   2,
 
	AT_METROPOLITAN  =   3,
 
	AT_INTERNATIONAL =   4,
 
@@ -63,13 +65,14 @@ enum {
 
	ENDLANDING     = 16,
 
	HELILANDING    = 17,
 
	HELIENDLANDING = 18,
 
	TERM7          = 19,
 
	TERM8          = 20,
 
	HELIPAD3       = 21,
 
	HELIPAD4       = 22
 
	HELIPAD4       = 22,
 
	MAX_HEADINGS   = 22,
 
};
 

	
 
/* Movement Blocks on Airports
 
 * blocks (eg_airport_flags) */
 
static const uint64
 
	TERM1_block              = 1ULL <<  0,
0 comments (0 inline, 0 general)