Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
#ifndef _INPUT_
2
#include "input.h"
3
#endif
4
 
5
#ifndef _CONST_
6
#include "constants.h"
7
#endif
8
 
9
#ifndef _ATCSIM_HEADER_
10
#include "atcsim.h"
11
#endif
12
 
13
#include <string.h>
14
//Input details of different airports
15
airport airports[NUM_OF_AIRPORTS];
16
 
17
//Input details of different aeroplanes
18
aeroplane_model_info planeinfo[NUM_OF_AEROPLANE_MODELS];
19
 
20
void read_airports_info()
21
{
22
        airports[0].id=0;
23
        strcpy(airports[0].airportname,"NY");
24
        airports[0].x=XMIN+50;
25
        airports[0].y=YMIN+50;
26
        airports[0].airportsize=15;
27
 
28
        airports[1].id=1;
29
        strcpy(airports[1].airportname,"ND");
30
        airports[1].x=XMIN+260;
31
        airports[1].y=YMIN+80;
32
        airports[1].airportsize=15;
33
 
34
        airports[2].id=2;
35
        strcpy(airports[2].airportname,"TX");
36
        airports[2].x=XMIN+450;
37
        airports[2].y=YMIN+300;
38
        airports[2].airportsize=15;
39
 
40
        airports[3].id=3;
41
        strcpy(airports[3].airportname,"IT");
42
        airports[3].x=XMIN+170;
43
        airports[3].y=YMIN+500;
44
        airports[3].airportsize=15;
45
 
46
        airports[4].id=4;
47
        strcpy(airports[4].airportname,"ID");
48
        airports[4].x=XMIN+300;
49
        airports[4].y=YMIN+410;
50
        airports[4].airportsize=15;
51
 
52
        airports[5].id=5;
53
        strcpy(airports[5].airportname,"AB");
54
        airports[5].x=XMIN+500;
55
        airports[5].y=YMIN+260;
56
        airports[5].airportsize=15;
57
 
58
        airports[6].id=6;
59
        strcpy(airports[6].airportname,"CD");
60
        airports[6].x=XMIN+600;
61
        airports[6].y=YMIN+400;
62
        airports[6].airportsize=15;
63
 
64
        airports[7].id=7;
65
        strcpy(airports[7].airportname,"DE");
66
        airports[7].x=XMIN+750;
67
        airports[7].y=YMIN+550;
68
        airports[7].airportsize=15;
69
 
70
}
71
 
72
 
73
void read_aeroplanes_info()
74
{
75
        planeinfo[0].model_id=0;
76
        strcpy(planeinfo[0].model,"BOEING 100");
77
        planeinfo[0].min_speed=100;
78
        planeinfo[0].max_speed=600;
79
        planeinfo[0].min_altitude=10000;  //in metres
80
        planeinfo[0].max_altitude=15000;
81
        planeinfo[0].max_passengers=50;
82
        planeinfo[0].weight=130;
83
        planeinfo[0].year_of_manu=1988;
84
        planeinfo[0].planesize = 6;
85
 
86
        planeinfo[1].model_id=1;
87
        strcpy(planeinfo[1].model,"BOEING 555");
88
        planeinfo[1].min_speed=200;
89
        planeinfo[1].max_speed=600;
90
        planeinfo[1].min_altitude=10000;  //in metres
91
        planeinfo[1].max_altitude=15000;
92
        planeinfo[1].max_passengers=100;
93
        planeinfo[1].weight=150;
94
        planeinfo[1].year_of_manu=1990;
95
        planeinfo[1].planesize = 6;
96
 
97
        planeinfo[2].model_id=2;
98
        strcpy(planeinfo[2].model,"BOEING 747");
99
        planeinfo[2].min_speed=300;
100
        planeinfo[2].max_speed=600;
101
        planeinfo[2].min_altitude=10000;  //in metres
102
        planeinfo[2].max_altitude=15000;
103
        planeinfo[2].max_passengers=150;
104
        planeinfo[2].weight=200;
105
        planeinfo[2].year_of_manu=1995;
106
        planeinfo[2].planesize = 6;
107
 
108
        planeinfo[3].model_id=3;
109
        strcpy(planeinfo[3].model,"BOEING 777");
110
        planeinfo[3].min_speed=200;
111
        planeinfo[3].max_speed=600;
112
        planeinfo[3].min_altitude=10000;  //in metres
113
        planeinfo[3].max_altitude=15000;
114
        planeinfo[3].max_passengers=300;
115
        planeinfo[3].weight=300;
116
        planeinfo[3].year_of_manu=2000;
117
        planeinfo[3].planesize = 6;
118
}
119