author | truelight |
Thu, 24 Mar 2005 14:43:40 +0000 | |
changeset 1540 | 6eef12dab5bf |
parent 950 | 165341d74973 |
child 2159 | f6284cf5fab0 |
permissions | -rw-r--r-- |
0 | 1 |
#ifndef AIRPORT_MOVEMENT_H |
2 |
#define AIRPORT_MOVEMENT_H |
|
3 |
||
4 |
#include "stdafx.h" |
|
5 |
#include "macros.h" |
|
6 |
||
7 |
typedef struct AirportMovingData { |
|
8 |
int x,y; |
|
9 |
byte flag; |
|
10 |
byte direction; |
|
11 |
} AirportMovingData; |
|
12 |
||
13 |
// state machine input struct (from external file, etc.) |
|
14 |
// Finite sTate mAchine --> FTA |
|
15 |
typedef struct AirportFTAbuildup { |
|
16 |
byte position; // the position that an airplane is at |
|
17 |
byte heading; // the current orders (eg. TAKEOFF, HANGAR, ENDLANDING, etc.) |
|
18 |
uint32 block; // the block this position is on on the airport (st->airport_flags) |
|
19 |
byte next_in_chain; // next position from this position |
|
20 |
} AirportFTAbuildup; |
|
21 |
||
22 |
enum { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
23 |
AMED_NOSPDCLAMP = 1<<0, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
24 |
AMED_TAKEOFF = 1<<1, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
25 |
AMED_SLOWTURN = 1<<2, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
26 |
AMED_LAND = 1<<3, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
27 |
AMED_EXACTPOS = 1<<4, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
28 |
AMED_BRAKE = 1<<5, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
29 |
AMED_HELI_RAISE = 1<<6, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
30 |
AMED_HELI_LOWER = 1<<7, |
0 | 31 |
}; |
32 |
||
33 |
enum {MAX_ELEMENTS = 255}; |
|
34 |
enum {MAX_HEADINGS = 18}; |
|
35 |
||
36 |
/////////////////////////////////////////////////////////////////////// |
|
37 |
///////***********Movement States on Airports********************////// |
|
38 |
// headings target |
|
39 |
enum { |
|
40 |
TO_ALL = 0, |
|
41 |
HANGAR = 1, |
|
42 |
TERM1 = 2, |
|
43 |
TERM2 = 3, |
|
44 |
TERM3 = 4, |
|
45 |
TERM4 = 5, |
|
46 |
TERM5 = 6, |
|
47 |
TERM6 = 7, |
|
48 |
HELIPAD1 = 8, |
|
49 |
HELIPAD2 = 9, |
|
50 |
TAKEOFF = 10, |
|
51 |
STARTTAKEOFF = 11, |
|
52 |
ENDTAKEOFF = 12, |
|
53 |
HELITAKEOFF = 13, |
|
54 |
FLYING = 14, |
|
55 |
LANDING = 15, |
|
56 |
ENDLANDING = 16, |
|
57 |
HELILANDING = 17, |
|
58 |
HELIENDLANDING = 18 |
|
59 |
}; |
|
60 |
||
61 |
/////////////////////////////////////////////////////////////////////// |
|
62 |
///////**********Movement Blocks on Airports*********************////// |
|
63 |
// blocks (eg_airport_flags) |
|
64 |
enum { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
65 |
TERM1_block = 1 << 0, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
66 |
TERM2_block = 1 << 1, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
67 |
TERM3_block = 1 << 2, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
68 |
TERM4_block = 1 << 3, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
69 |
TERM5_block = 1 << 4, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
70 |
TERM6_block = 1 << 5, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
71 |
HELIPAD1_block = 1 << 6, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
72 |
HELIPAD2_block = 1 << 7, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
73 |
RUNWAY_IN_OUT_block = 1 << 8, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
74 |
RUNWAY_IN_block = 1 << 8, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
75 |
AIRPORT_BUSY_block = 1 << 8, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
76 |
RUNWAY_OUT_block = 1 << 9, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
77 |
TAXIWAY_BUSY_block = 1 << 10, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
78 |
OUT_WAY_block = 1 << 11, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
79 |
IN_WAY_block = 1 << 12, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
80 |
AIRPORT_ENTRANCE_block = 1 << 13, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
81 |
TERM_GROUP1_block = 1 << 14, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
82 |
TERM_GROUP2_block = 1 << 15, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
83 |
HANGAR2_AREA_block = 1 << 16, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
84 |
TERM_GROUP2_ENTER1_block = 1 << 17, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
85 |
TERM_GROUP2_ENTER2_block = 1 << 18, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
86 |
TERM_GROUP2_EXIT1_block = 1 << 19, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
87 |
TERM_GROUP2_EXIT2_block = 1 << 20, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
88 |
PRE_HELIPAD_block = 1 << 21, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
89 |
NOTHING_block = 1 << 30 |
0 | 90 |
}; |
91 |
||
92 |
/////////////////////////////////////////////////////////////////////// |
|
93 |
/////*********Movement Positions on Airports********************/////// |
|
94 |
// Country Airfield (small) 4x3 |
|
95 |
static const AirportMovingData _airport_moving_data_country[22] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
96 |
{ 53, 3,AMED_EXACTPOS,3}, // 00 In Hangar |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
97 |
{ 53, 27,0,0}, // 01 Taxi to right outside depot |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
98 |
{ 32, 23,AMED_EXACTPOS,7}, // 02 Terminal 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
99 |
{ 10, 23,AMED_EXACTPOS,7}, // 03 Terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
100 |
{ 43, 37,0,0}, // 04 Going towards terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
101 |
{ 24, 37,0,0}, // 05 Going towards terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
102 |
{ 53, 37,0,0}, // 06 Going for takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
103 |
{ 61, 40,AMED_EXACTPOS,1}, // 07 Taxi to start of runway (takeoff) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
104 |
{ 3, 40,AMED_NOSPDCLAMP,0}, // 08 Accelerate to end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
105 |
{-79, 40,AMED_NOSPDCLAMP | AMED_TAKEOFF,0}, // 09 Take off |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
106 |
{177, 40,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 10 Fly to landing position in air |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
107 |
{ 56, 40,AMED_NOSPDCLAMP | AMED_LAND,0}, // 11 Going down for land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
108 |
{ 3, 40,AMED_NOSPDCLAMP | AMED_BRAKE,0}, // 12 Just landed, brake until end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
109 |
{ 7, 40,0,0}, // 13 Just landed, turn around and taxi 1 square |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
110 |
{ 53, 40,0,0}, // 14 Taxi from runway to crossing |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
111 |
{-31,193,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 15 Fly around waiting for a landing spot (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
112 |
{ 1, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 16 Fly around waiting for a landing spot (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
113 |
{257, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 17 Fly around waiting for a landing spot (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
114 |
{273, 49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 18 Fly around waiting for a landing spot (south) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
115 |
{ 44, 37,AMED_HELI_RAISE,0}, // 19 Helicopter takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
116 |
{ 44, 40,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 20 In position above landing spot helicopter |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
117 |
{ 44, 40,AMED_HELI_LOWER,0} // 21 Helicopter landing |
0 | 118 |
}; |
119 |
||
120 |
// City Airport (large) 6x6 |
|
121 |
static const AirportMovingData _airport_moving_data_town[25] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
122 |
{ 85, 3,AMED_EXACTPOS,3}, // 00 In Hangar |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
123 |
{ 85, 27,0,0}, // 01 Taxi to right outside depot |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
124 |
{ 26, 41,AMED_EXACTPOS,5}, // 02 Terminal 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
125 |
{ 56, 20,AMED_EXACTPOS,3}, // 03 Terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
126 |
{ 38, 8,AMED_EXACTPOS,5}, // 04 Terminal 3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
127 |
{ 65, 6,0,0}, // 05 Taxi to right in infront of terminal 2/3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
128 |
{ 80, 27,0,0}, // 06 Taxiway terminals 2-3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
129 |
{ 44, 63,0,0}, // 07 Taxi to Airport center |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
130 |
{ 58, 71,0,0}, // 08 Towards takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
131 |
{ 72, 85,0,0}, // 09 Taxi to runway (takeoff) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
132 |
{ 89, 85,AMED_EXACTPOS,1}, // 10 Taxi to start of runway (takeoff) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
133 |
{ 3, 85,AMED_NOSPDCLAMP,0}, // 11 Accelerate to end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
134 |
{-79, 85,AMED_NOSPDCLAMP | AMED_TAKEOFF,0}, // 12 Take off |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
135 |
{177, 85,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 13 Fly to landing position in air |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
136 |
{ 89, 85,AMED_NOSPDCLAMP | AMED_LAND,0}, // 14 Going down for land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
137 |
{ 3, 85,AMED_NOSPDCLAMP | AMED_BRAKE,0}, // 15 Just landed, brake until end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
138 |
{ 20, 87,0,0}, // 16 Just landed, turn around and taxi 1 square |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
139 |
{ 36, 71,0,0}, // 17 Taxi from runway to crossing |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
140 |
{-31,193,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 18 Fly around waiting for a landing spot (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
141 |
{ 1, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 19 Fly around waiting for a landing spot (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
142 |
{257, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 20 Fly around waiting for a landing spot (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
143 |
{273, 49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 21 Fly around waiting for a landing spot (south) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
144 |
{ 44, 63,AMED_HELI_RAISE,0}, // 22 Helicopter takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
145 |
{ 28, 74,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 23 In position above landing spot helicopter |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
146 |
{ 28, 74,AMED_HELI_LOWER,0} // 24 Helicopter landing |
0 | 147 |
}; |
148 |
||
149 |
// Metropolitan Airport (metropolitan) - 2 runways |
|
150 |
static const AirportMovingData _airport_moving_data_metropolitan[27] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
151 |
{ 85, 3,AMED_EXACTPOS,3}, // 00 In Hangar |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
152 |
{ 85, 27,0,0}, // 01 Taxi to right outside depot |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
153 |
{ 26, 41,AMED_EXACTPOS,5}, // 02 Terminal 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
154 |
{ 56, 20,AMED_EXACTPOS,3}, // 03 Terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
155 |
{ 38, 8,AMED_EXACTPOS,5}, // 04 Terminal 3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
156 |
{ 65, 6,0,0}, // 05 Taxi to right in infront of terminal 2/3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
157 |
{ 70, 33,0,0}, // 06 Taxiway terminals 2-3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
158 |
{ 44, 58,0,0}, // 07 Taxi to Airport center |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
159 |
{ 72, 58,0,0}, // 08 Towards takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
160 |
{ 72, 69,0,0}, // 09 Taxi to runway (takeoff) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
161 |
{ 89, 69,AMED_EXACTPOS,1}, // 10 Taxi to start of runway (takeoff) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
162 |
{ 3, 69,AMED_NOSPDCLAMP,0}, // 11 Accelerate to end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
163 |
{-79, 69,AMED_NOSPDCLAMP | AMED_TAKEOFF,0}, // 12 Take off |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
164 |
{177, 85,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 13 Fly to landing position in air |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
165 |
{ 89, 85,AMED_NOSPDCLAMP | AMED_LAND,0}, // 14 Going down for land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
166 |
{ 3, 85,AMED_NOSPDCLAMP | AMED_BRAKE,0}, // 15 Just landed, brake until end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
167 |
{ 21, 85,0,0}, // 16 Just landed, turn around and taxi 1 square |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
168 |
{ 21, 69,0,0}, // 17 On Runway-out taxiing to In-Way |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
169 |
{ 21, 54,AMED_EXACTPOS,5}, // 18 Taxi from runway to crossing |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
170 |
{-31,193,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 19 Fly around waiting for a landing spot (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
171 |
{ 1, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 20 Fly around waiting for a landing spot (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
172 |
{257, 1,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 21 Fly around waiting for a landing spot (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
173 |
{273, 49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 22 Fly around waiting for a landing spot (south) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
174 |
{ 44, 58,0,0}, // 23 Helicopter takeoff spot on ground (to clear airport sooner) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
175 |
{ 44, 63,AMED_HELI_RAISE,0}, // 24 Helicopter takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
176 |
{ 15, 54,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 25 Get in position above landing spot helicopter |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
177 |
{ 15, 54,AMED_HELI_LOWER,0} // 26 Helicopter landing |
0 | 178 |
}; |
179 |
||
180 |
// International Airport (international) - 2 runways, 6 terminals, dedicated helipod |
|
181 |
static const AirportMovingData _airport_moving_data_international[51] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
182 |
{ 7, 55,AMED_EXACTPOS,3}, // 00 In Hangar 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
183 |
{100, 21,AMED_EXACTPOS,3}, // 01 In Hangar 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
184 |
{ 7, 70,0,0}, // 02 Taxi to right outside depot |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
185 |
{100, 36,0,0}, // 03 Taxi to right outside depot |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
186 |
{ 38, 70,AMED_EXACTPOS,5}, // 04 Terminal 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
187 |
{ 38, 54,AMED_EXACTPOS,5}, // 05 Terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
188 |
{ 38, 38,AMED_EXACTPOS,5}, // 06 Terminal 3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
189 |
{ 70, 70,AMED_EXACTPOS,1}, // 07 Terminal 4 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
190 |
{ 70, 54,AMED_EXACTPOS,1}, // 08 Terminal 5 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
191 |
{ 70, 38,AMED_EXACTPOS,1}, // 09 Terminal 6 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
192 |
{104, 71,AMED_EXACTPOS,1}, // 10 Helipad 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
193 |
{104, 55,AMED_EXACTPOS,1}, // 11 Helipad 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
194 |
{ 22, 87,0,0}, // 12 Towards Terminals 4/5/6, Helipad 1/2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
195 |
{ 60, 87,0,0}, // 13 Towards Terminals 4/5/6, Helipad 1/2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
196 |
{ 66, 87,0,0}, // 14 Towards Terminals 4/5/6, Helipad 1/2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
197 |
{ 86, 87,AMED_EXACTPOS,7}, // 15 Towards Terminals 4/5/6, Helipad 1/2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
198 |
{ 86, 70,0,0}, // 16 In Front of Terminal 4 / Helipad 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
199 |
{ 86, 54,0,0}, // 17 In Front of Terminal 5 / Helipad 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
200 |
{ 86, 38,0,0}, // 18 In Front of Terminal 6 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
201 |
{ 86, 22,0,0}, // 19 Towards Terminals Takeoff (Taxiway) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
202 |
{ 66, 22,0,0}, // 20 Towards Terminals Takeoff (Taxiway) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
203 |
{ 60, 22,0,0}, // 21 Towards Terminals Takeoff (Taxiway) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
204 |
{ 38, 22,0,0}, // 22 Towards Terminals Takeoff (Taxiway) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
205 |
{ 22, 70,0,0}, // 23 In Front of Terminal 1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
206 |
{ 22, 58,0,0}, // 24 In Front of Terminal 2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
207 |
{ 22, 38,0,0}, // 25 In Front of Terminal 3 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
208 |
{ 22, 22,AMED_EXACTPOS,7}, // 26 Going for Takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
209 |
{ 22, 6,0,0}, // 27 On Runway-out, prepare for takeoff |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
210 |
{ 3, 6,AMED_EXACTPOS,5}, // 28 Accelerate to end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
211 |
{ 60, 6,AMED_NOSPDCLAMP,0}, // 29 Release control of runway, for smoother movement |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
212 |
{105, 6,AMED_NOSPDCLAMP,0}, // 30 End of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
213 |
{190, 6,AMED_NOSPDCLAMP | AMED_TAKEOFF,0}, // 31 Take off |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
214 |
{193,104,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 32 Fly to landing position in air |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
215 |
{105,104,AMED_NOSPDCLAMP | AMED_LAND,0}, // 33 Going down for land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
216 |
{ 3,104,AMED_NOSPDCLAMP | AMED_BRAKE,0}, // 34 Just landed, brake until end of runway |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
217 |
{ 12,104,0,0}, // 35 Just landed, turn around and taxi 1 square |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
218 |
{ 7, 84,0,0}, // 36 Taxi from runway to crossing |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
219 |
{-31,209,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 37 Fly around waiting for a landing spot (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
220 |
{ 1, 6,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 38 Fly around waiting for a landing spot (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
221 |
{273, 6,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 39 Fly around waiting for a landing spot (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
222 |
{305, 81,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 40 Fly around waiting for a landing spot (south) |
0 | 223 |
// Helicopter |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
224 |
{128, 80,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 41 Bufferspace before helipad |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
225 |
{128, 80,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 42 Bufferspace before helipad |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
226 |
{ 96, 71,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 43 Get in position for Helipad1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
227 |
{ 96, 55,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 44 Get in position for Helipad2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
228 |
{ 96, 71,AMED_HELI_LOWER,0}, // 45 Land at Helipad1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
229 |
{ 96, 55,AMED_HELI_LOWER,0}, // 46 Land at Helipad2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
230 |
{104, 71,AMED_HELI_RAISE,0}, // 47 Takeoff Helipad1 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
231 |
{104, 55,AMED_HELI_RAISE,0}, // 48 Takeoff Helipad2 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
232 |
{104, 32,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 49 Go to position for Hangarentrance in air |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
233 |
{104, 32,AMED_HELI_LOWER,0} // 50 Land in HANGAR2_AREA to go to hangar |
0 | 234 |
}; |
235 |
||
236 |
// Heliport (heliport) |
|
237 |
static const AirportMovingData _airport_moving_data_heliport[9] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
238 |
{ 5, 9,AMED_EXACTPOS,1}, // 0 - At heliport terminal |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
239 |
{ 2, 9,AMED_HELI_RAISE,0}, // 1 - Take off (play sound) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
240 |
{ -3, 9,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 2 - In position above landing spot helicopter |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
241 |
{ -3, 9,AMED_HELI_LOWER,0}, // 3 - Land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
242 |
{ 2, 9,0,0}, // 4 - Goto terminal on ground |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
243 |
{-31, 59,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 5 - Circle #1 (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
244 |
{-31,-49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 6 - Circle #2 (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
245 |
{ 49,-49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 7 - Circle #3 (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
246 |
{ 70, 9,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 8 - Circle #4 (south) |
0 | 247 |
}; |
248 |
||
249 |
// Oilrig |
|
250 |
static const AirportMovingData _airport_moving_data_oilrig[9] = { |
|
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
251 |
{ 31, 9,AMED_EXACTPOS,1}, // 0 - At oilrig terminal |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
252 |
{ 28, 9,AMED_HELI_RAISE,0}, // 1 - Take off (play sound) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
253 |
{ 23, 9,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 2 - In position above landing spot helicopter |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
254 |
{ 23, 9,AMED_HELI_LOWER,0}, // 3 - Land |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
255 |
{ 28, 9,0,0}, // 4 - Goto terminal on ground |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
256 |
{-31, 69,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 5 - circle #1 (north-east) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
257 |
{-31,-49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 6 - circle #2 (north-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
258 |
{ 69,-49,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 7 - circle #3 (south-west) |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
259 |
{ 70, 9,AMED_NOSPDCLAMP | AMED_SLOWTURN,0}, // 8 - circle #4 (south) |
0 | 260 |
}; |
261 |
||
262 |
/////////////////////////////////////////////////////////////////////// |
|
263 |
/////**********Movement Machine on Airports*********************/////// |
|
264 |
// first element of depots array tells us how many depots there are (to know size of array) |
|
265 |
// this may be changed later when airports are moved to external file |
|
909
65cdb609b7a6
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
tron
parents:
699
diff
changeset
|
266 |
static const TileIndexDiffC _airport_depots_country[] = {{3, 0}}; |
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
267 |
static const byte _airport_terminal_country[] = {1, 2}; |
0 | 268 |
static const AirportFTAbuildup _airport_fta_country[] = { |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
269 |
{ 0,HANGAR,NOTHING_block,1}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
270 |
{ 1,255,AIRPORT_BUSY_block,0}, {1,HANGAR,0,0}, {1,TERM1,TERM1_block,2}, {1,TERM2,0,4}, {1,HELITAKEOFF,0,19}, {1,0,0,6}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
271 |
{ 2,TERM1,TERM1_block,1}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
272 |
{ 3,TERM2,TERM2_block,5}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
273 |
{ 4,255,AIRPORT_BUSY_block,0}, {4,TERM2,0,5}, {4,HANGAR,0,1}, {4,TAKEOFF,0,6}, {4,HELITAKEOFF,0,1}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
274 |
{ 5,255,AIRPORT_BUSY_block,0}, {5,TERM2,TERM2_block,3}, {5,0,0,4}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
275 |
{ 6,0,AIRPORT_BUSY_block,7}, |
0 | 276 |
// takeoff |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
277 |
{ 7,TAKEOFF,AIRPORT_BUSY_block,8}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
278 |
{ 8,STARTTAKEOFF,NOTHING_block,9}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
279 |
{ 9,ENDTAKEOFF,NOTHING_block,0}, |
0 | 280 |
// landing |
281 |
{10,FLYING,NOTHING_block,15}, {10,LANDING,0,11}, {10,HELILANDING,0,20}, |
|
282 |
{11,LANDING,AIRPORT_BUSY_block,12}, |
|
283 |
{12,0,AIRPORT_BUSY_block,13}, |
|
284 |
{13,ENDLANDING,AIRPORT_BUSY_block,14}, {13,TERM2,0,5}, {13,0,0,14}, |
|
285 |
{14,0,AIRPORT_BUSY_block,1}, |
|
286 |
// In air |
|
287 |
{15,0,NOTHING_block,16}, |
|
288 |
{16,0,NOTHING_block,17}, |
|
289 |
{17,0,NOTHING_block,18}, |
|
290 |
{18,0,NOTHING_block,10}, |
|
291 |
{19,HELITAKEOFF,NOTHING_block,0}, |
|
292 |
{20,HELILANDING,AIRPORT_BUSY_block,21}, |
|
293 |
{21,HELIENDLANDING,AIRPORT_BUSY_block,1}, |
|
294 |
{MAX_ELEMENTS,0,0,0} // end marker. DO NOT REMOVE |
|
295 |
}; |
|
296 |
||
909
65cdb609b7a6
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
tron
parents:
699
diff
changeset
|
297 |
static const TileIndexDiffC _airport_depots_city[] = {{5, 0}}; |
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
298 |
static const byte _airport_terminal_city[] = {1, 3}; |
0 | 299 |
static const AirportFTAbuildup _airport_fta_city[] = { |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
300 |
{ 0,HANGAR,NOTHING_block,1}, {0,TAKEOFF,OUT_WAY_block,1}, {0,0,0,1}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
301 |
{ 1,255,TAXIWAY_BUSY_block,0}, {1,HANGAR,0,0}, {1,TERM2,0,6}, {1,TERM3,0,6}, {1,0,0,7}, // for all else, go to 7 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
302 |
{ 2,TERM1,TERM1_block,7}, {2,TAKEOFF,OUT_WAY_block,7}, {2,0,0,7}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
303 |
{ 3,TERM2,TERM2_block,5}, {3,TAKEOFF,OUT_WAY_block,5}, {3,0,0,5}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
304 |
{ 4,TERM3,TERM3_block,5}, {4,TAKEOFF,OUT_WAY_block,5}, {4,0,0,5}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
305 |
{ 5,255,TAXIWAY_BUSY_block,0}, {5,TERM2,TERM2_block,3}, {5,TERM3,TERM3_block,4}, {5,0,0,6}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
306 |
{ 6,255,TAXIWAY_BUSY_block,0}, {6,TERM2,0,5}, {6,TERM3,0,5}, {6,HANGAR,0,1}, {6,0,0,7}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
307 |
{ 7,255,TAXIWAY_BUSY_block,0}, {7,TERM1,TERM1_block,2}, {7,TAKEOFF,OUT_WAY_block,8}, {7,HELITAKEOFF,0,22}, {7,HANGAR,0,1}, {7,0,0,6}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
308 |
{ 8,0,OUT_WAY_block,9}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
309 |
{ 9,0,RUNWAY_IN_OUT_block,10}, |
0 | 310 |
// takeoff |
311 |
{10,TAKEOFF,RUNWAY_IN_OUT_block,11}, |
|
312 |
{11,STARTTAKEOFF,NOTHING_block,12}, |
|
313 |
{12,ENDTAKEOFF,NOTHING_block,0}, |
|
314 |
// landing |
|
315 |
{13,FLYING,NOTHING_block,18}, {13,LANDING,0,14}, {13,HELILANDING,0,23}, |
|
316 |
{14,LANDING,RUNWAY_IN_OUT_block,15}, |
|
317 |
{15,0,RUNWAY_IN_OUT_block,16}, |
|
318 |
{16,0,RUNWAY_IN_OUT_block,17}, |
|
319 |
{17,ENDLANDING,IN_WAY_block,7}, |
|
320 |
// In Air |
|
321 |
{18,0,NOTHING_block,19}, |
|
322 |
{19,0,NOTHING_block,20}, |
|
323 |
{20,0,NOTHING_block,21}, |
|
324 |
{21,0,NOTHING_block,13}, |
|
325 |
// helicopter |
|
326 |
{22,HELITAKEOFF,NOTHING_block,0}, |
|
327 |
{23,HELILANDING,IN_WAY_block,24}, |
|
328 |
{24,HELIENDLANDING,IN_WAY_block,17}, |
|
329 |
{MAX_ELEMENTS,0,0,0} // end marker. DO NOT REMOVE |
|
330 |
}; |
|
331 |
||
909
65cdb609b7a6
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
tron
parents:
699
diff
changeset
|
332 |
static const TileIndexDiffC _airport_depots_metropolitan[] = {{5, 0}}; |
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
333 |
static const byte _airport_terminal_metropolitan[] = {1, 3}; |
0 | 334 |
static const AirportFTAbuildup _airport_fta_metropolitan[] = { |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
335 |
{ 0,HANGAR,NOTHING_block,1}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
336 |
{ 1,255,TAXIWAY_BUSY_block,0}, {1,HANGAR,0,0}, {1,TERM2,0,6}, {1,TERM3,0,6}, {1,0,0,7}, // for all else, go to 7 |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
337 |
{ 2,TERM1,TERM1_block,7}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
338 |
{ 3,TERM2,TERM2_block,5}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
339 |
{ 4,TERM3,TERM3_block,5}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
340 |
{ 5,255,TAXIWAY_BUSY_block,0}, {5,TERM2,TERM2_block,3}, {5,TERM3,TERM3_block,4}, {5,0,0,6}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
341 |
{ 6,255,TAXIWAY_BUSY_block,0}, {6,TERM2,0,5}, {6,TERM3,0,5}, {6,HANGAR,0,1}, {6,0,0,7}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
342 |
{ 7,255,TAXIWAY_BUSY_block,0}, {7,TERM1,TERM1_block,2}, {7,TAKEOFF,0,8}, {7,HELITAKEOFF,0,23}, {7,HANGAR,0,1}, {7,0,0,6}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
343 |
{ 8,0,OUT_WAY_block,9}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
344 |
{ 9,0,RUNWAY_OUT_block,10}, |
0 | 345 |
// takeoff |
346 |
{10,TAKEOFF,RUNWAY_OUT_block,11}, |
|
347 |
{11,STARTTAKEOFF,NOTHING_block,12}, |
|
348 |
{12,ENDTAKEOFF,NOTHING_block,0}, |
|
349 |
// landing |
|
350 |
{13,FLYING,NOTHING_block,19}, {13,LANDING,0,14}, {13,HELILANDING,0,25}, |
|
351 |
{14,LANDING,RUNWAY_IN_block,15}, |
|
352 |
{15,0,RUNWAY_IN_block,16}, |
|
353 |
{16,255,RUNWAY_IN_block,0}, {16,ENDLANDING,IN_WAY_block,17}, |
|
354 |
{17,255,RUNWAY_OUT_block,0}, {17,ENDLANDING,IN_WAY_block,18}, |
|
355 |
{18,ENDLANDING,IN_WAY_block,7}, |
|
356 |
// In Air |
|
357 |
{19,0,NOTHING_block,20}, |
|
358 |
{20,0,NOTHING_block,21}, |
|
359 |
{21,0,NOTHING_block,22}, |
|
360 |
{22,0,NOTHING_block,13}, |
|
361 |
// helicopter |
|
362 |
{23,0,NOTHING_block,24}, |
|
363 |
{24,HELITAKEOFF,NOTHING_block,0}, |
|
364 |
{25,HELILANDING,IN_WAY_block,26}, |
|
365 |
{26,HELIENDLANDING,IN_WAY_block,18}, |
|
366 |
{MAX_ELEMENTS,0,0,0} // end marker. DO NOT REMOVE |
|
367 |
}; |
|
368 |
||
909
65cdb609b7a6
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
tron
parents:
699
diff
changeset
|
369 |
static const TileIndexDiffC _airport_depots_international[] = {{0, 3}, {6, 1}}; |
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
370 |
static const byte _airport_terminal_international[] = {2, 3, 3}; |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
371 |
static const byte _airport_helipad_international[] = {1, 2}; |
0 | 372 |
static const AirportFTAbuildup _airport_fta_international[] = { |
179
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
373 |
{ 0,HANGAR,NOTHING_block,2}, {0,255,TERM_GROUP1_block,0}, {0,255,TERM_GROUP2_ENTER1_block,1}, {0,HELITAKEOFF,HELIPAD1_block,2}, {0,0,0,2}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
374 |
{ 1,HANGAR,NOTHING_block,3}, {1,255,HANGAR2_AREA_block,1}, {1,HELITAKEOFF,HELIPAD2_block,3}, {1,0,0,3}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
375 |
{ 2,255,AIRPORT_ENTRANCE_block,0}, {2,HANGAR,0,0}, {2,TERM4,0,12}, {2,TERM5,0,12}, {2,TERM6,0,12}, {2,HELIPAD1,0,12}, {2,HELIPAD2,0,12}, {2,HELITAKEOFF,0,12}, {2,0,0,23}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
376 |
{ 3,255,HANGAR2_AREA_block,0}, {3,HANGAR,0,1}, {3,0,0,18}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
377 |
{ 4,TERM1,TERM1_block,23}, {4,HANGAR,AIRPORT_ENTRANCE_block,23}, {4,0,0,23}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
378 |
{ 5,TERM2,TERM2_block,24}, {5,HANGAR,AIRPORT_ENTRANCE_block,24}, {5,0,0,24}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
379 |
{ 6,TERM3,TERM3_block,25}, {6,HANGAR,AIRPORT_ENTRANCE_block,25}, {6,0,0,25}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
380 |
{ 7,TERM4,TERM4_block,16}, {7,HANGAR,HANGAR2_AREA_block,16}, {7,0,0,16}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
381 |
{ 8,TERM5,TERM5_block,17}, {8,HANGAR,HANGAR2_AREA_block,17}, {8,0,0,17}, |
003096efeb9d
(svn r180) -Fix: some more warning fixes for C99 (Tron)
darkvater
parents:
0
diff
changeset
|
382 |
{ 9,TERM6,TERM6_block,18}, {9,HANGAR,HANGAR2_AREA_block,18}, {9,0,0,18}, |
0 | 383 |
{10,HELIPAD1,HELIPAD1_block,10}, {10,HANGAR,HANGAR2_AREA_block,16}, {10,HELITAKEOFF,0,47}, |
384 |
{11,HELIPAD2,HELIPAD2_block,11}, {11,HANGAR,HANGAR2_AREA_block,17}, {11,HELITAKEOFF,0,48}, |
|
385 |
{12,0,TERM_GROUP2_ENTER1_block,13}, |
|
386 |
{13,0,TERM_GROUP2_ENTER1_block,14}, |
|
387 |
{14,0,TERM_GROUP2_ENTER2_block,15}, |
|
388 |
{15,0,TERM_GROUP2_ENTER2_block,16}, |
|
389 |
{16,255,TERM_GROUP2_block,0}, {16,TERM4,TERM4_block,7}, {16,HELIPAD1,HELIPAD1_block,10}, {16,HELITAKEOFF,HELIPAD1_block,10}, {16,0,0,17}, |
|
390 |
{17,255,TERM_GROUP2_block,0}, {17,TERM5,TERM5_block,8}, {17,TERM4,0,16}, {17,HELIPAD1,0,16}, {17,HELIPAD2,HELIPAD2_block,11}, {17,HELITAKEOFF,HELIPAD2_block,11}, {17,0,0,18}, |
|
391 |
{18,255,TERM_GROUP2_block,0}, {18,TERM6,TERM6_block,9}, {18,TAKEOFF,0,19}, {18,HANGAR,HANGAR2_AREA_block,3}, {18,0,0,17}, |
|
392 |
{19,0,TERM_GROUP2_EXIT1_block,20}, |
|
393 |
{20,0,TERM_GROUP2_EXIT1_block,21}, |
|
394 |
{21,0,TERM_GROUP2_EXIT2_block,22}, |
|
395 |
{22,0,TERM_GROUP2_EXIT2_block,26}, |
|
396 |
{23,255,TERM_GROUP1_block,0}, {23,TERM1,TERM1_block,4}, {23,HANGAR,AIRPORT_ENTRANCE_block,2}, {23,0,0,24}, |
|
397 |
{24,255,TERM_GROUP1_block,0}, {24,TERM2,TERM2_block,5}, {24,TERM1,0,23}, {24,HANGAR,0,23}, {24,0,0,25}, |
|
398 |
{25,255,TERM_GROUP1_block,0}, {25,TERM3,TERM3_block,6}, {25,TAKEOFF,0,26}, {25,0,0,24}, |
|
399 |
{26,255,TAXIWAY_BUSY_block,0}, {26,TAKEOFF,0,27}, {26,0,0,25}, |
|
400 |
{27,0,OUT_WAY_block,28}, |
|
401 |
// takeoff |
|
402 |
{28,TAKEOFF,OUT_WAY_block,29}, |
|
403 |
{29,0,RUNWAY_OUT_block,30}, |
|
404 |
{30,STARTTAKEOFF,NOTHING_block,31}, |
|
405 |
{31,ENDTAKEOFF,NOTHING_block,0}, |
|
406 |
// landing |
|
407 |
{32,FLYING,NOTHING_block,37}, {32,LANDING,0,33}, {32,HELILANDING,0,41}, |
|
408 |
{33,LANDING,RUNWAY_IN_block,34}, |
|
409 |
{34,0,RUNWAY_IN_block,35}, |
|
410 |
{35,0,RUNWAY_IN_block,36}, |
|
411 |
{36,ENDLANDING,IN_WAY_block,36}, {36,255,TERM_GROUP1_block,0}, {36,255,TERM_GROUP2_ENTER1_block,1}, {36,TERM4,0,12}, {36,TERM5,0,12}, {36,TERM6,0,12}, {36,0,0,2}, |
|
412 |
// In Air |
|
413 |
{37,0,NOTHING_block,38}, |
|
414 |
{38,0,NOTHING_block,39}, |
|
415 |
{39,0,NOTHING_block,40}, |
|
416 |
{40,0,NOTHING_block,32}, |
|
417 |
// Helicopter -- stay in air in special place as a buffer to choose from helipads |
|
418 |
{41,HELILANDING,PRE_HELIPAD_block,42}, |
|
419 |
{42,HELIENDLANDING,PRE_HELIPAD_block,42}, {42,HELIPAD1,0,43}, {42,HELIPAD2,0,44}, {42,HANGAR,0,49}, |
|
420 |
{43,0,NOTHING_block,45}, |
|
421 |
{44,0,NOTHING_block,46}, |
|
422 |
// landing |
|
423 |
{45,255,NOTHING_block,0}, {45,HELIPAD1,HELIPAD1_block,10}, |
|
424 |
{46,255,NOTHING_block,0}, {46,HELIPAD2,HELIPAD2_block,11}, |
|
425 |
// Helicopter -- takeoff |
|
426 |
{47,HELITAKEOFF,NOTHING_block,0}, |
|
427 |
{48,HELITAKEOFF,NOTHING_block,0}, |
|
428 |
{49,0,HANGAR2_AREA_block,50}, // need to go to hangar when waiting in air |
|
429 |
{50,0,HANGAR2_AREA_block,3}, |
|
430 |
{MAX_ELEMENTS,0,0,0} // end marker. DO NOT REMOVE |
|
431 |
}; |
|
432 |
||
699
604af534c65d
(svn r1149) Fix hack which abuses first TileIndex of airport depot array as number of depots (similar change as in map branch)
tron
parents:
179
diff
changeset
|
433 |
// heliports, oilrigs don't have depots |
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
434 |
static const byte _airport_helipad_heliport_oilrig[] = {1, 1}; |
0 | 435 |
static const AirportFTAbuildup _airport_fta_heliport_oilrig[] = { |
436 |
{0,HELIPAD1,HELIPAD1_block,1}, |
|
437 |
{1,HELITAKEOFF,NOTHING_block,0}, // takeoff |
|
438 |
{2,255,AIRPORT_BUSY_block,0}, {2,HELILANDING,0,3}, {2,HELITAKEOFF,0,1}, |
|
439 |
{3,HELILANDING,AIRPORT_BUSY_block,4}, |
|
440 |
{4,HELIENDLANDING,AIRPORT_BUSY_block,4}, {4,HELIPAD1,HELIPAD1_block,0}, {4,HELITAKEOFF,0,2}, |
|
441 |
// In Air |
|
442 |
{5,0,NOTHING_block,6}, |
|
443 |
{6,0,NOTHING_block,7}, |
|
444 |
{7,0,NOTHING_block,8}, |
|
445 |
{8,FLYING,NOTHING_block,5}, {8,HELILANDING,HELIPAD1_block,2}, // landing |
|
446 |
{MAX_ELEMENTS,0,0,0} // end marker. DO NOT REMOVE |
|
447 |
}; |
|
448 |
||
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
449 |
static const AirportMovingData * const _airport_moving_datas[] = { |
0 | 450 |
_airport_moving_data_country, // Country Airfield (small) 4x3 |
451 |
_airport_moving_data_town, // City Airport (large) 6x6 |
|
452 |
_airport_moving_data_heliport, // Heliport |
|
453 |
_airport_moving_data_metropolitan, // Metropolitain Airport (large) - 2 runways |
|
454 |
_airport_moving_data_international, // International Airport (xlarge) - 2 runways |
|
950
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
455 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
456 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
457 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
458 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
459 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
460 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
461 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
462 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
463 |
NULL, |
165341d74973
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
celestar
parents:
909
diff
changeset
|
464 |
NULL, |
0 | 465 |
_airport_moving_data_oilrig // Oilrig |
466 |
}; |
|
467 |
||
468 |
#endif /* AIRPORT_MOVEMENT_H */ |