Blame |
Last modification |
View Log
| RSS feed
#ifndef _INPUT_
#include "input.h"
#endif
#ifndef _CONST_
#include "constants.h"
#endif
#ifndef _ATCSIM_HEADER_
#include "atcsim.h"
#endif
#include <string.h>
//Input details of different airports
airport airports
[NUM_OF_AIRPORTS
];
//Input details of different aeroplanes
aeroplane_model_info planeinfo
[NUM_OF_AEROPLANE_MODELS
];
void read_airports_info
()
{
airports
[0].
id=0;
strcpy(airports
[0].
airportname,"NY");
airports
[0].
x=XMIN
+50;
airports
[0].
y=YMIN
+50;
airports
[0].
airportsize=15;
airports
[1].
id=1;
strcpy(airports
[1].
airportname,"ND");
airports
[1].
x=XMIN
+260;
airports
[1].
y=YMIN
+80;
airports
[1].
airportsize=15;
airports
[2].
id=2;
strcpy(airports
[2].
airportname,"TX");
airports
[2].
x=XMIN
+450;
airports
[2].
y=YMIN
+300;
airports
[2].
airportsize=15;
airports
[3].
id=3;
strcpy(airports
[3].
airportname,"IT");
airports
[3].
x=XMIN
+170;
airports
[3].
y=YMIN
+500;
airports
[3].
airportsize=15;
airports
[4].
id=4;
strcpy(airports
[4].
airportname,"ID");
airports
[4].
x=XMIN
+300;
airports
[4].
y=YMIN
+410;
airports
[4].
airportsize=15;
airports
[5].
id=5;
strcpy(airports
[5].
airportname,"AB");
airports
[5].
x=XMIN
+500;
airports
[5].
y=YMIN
+260;
airports
[5].
airportsize=15;
airports
[6].
id=6;
strcpy(airports
[6].
airportname,"CD");
airports
[6].
x=XMIN
+600;
airports
[6].
y=YMIN
+400;
airports
[6].
airportsize=15;
airports
[7].
id=7;
strcpy(airports
[7].
airportname,"DE");
airports
[7].
x=XMIN
+750;
airports
[7].
y=YMIN
+550;
airports
[7].
airportsize=15;
}
void read_aeroplanes_info
()
{
planeinfo
[0].
model_id=0;
strcpy(planeinfo
[0].
model,"BOEING 100");
planeinfo
[0].
min_speed=100;
planeinfo
[0].
max_speed=600;
planeinfo
[0].
min_altitude=10000; //in metres
planeinfo
[0].
max_altitude=15000;
planeinfo
[0].
max_passengers=50;
planeinfo
[0].
weight=130;
planeinfo
[0].
year_of_manu=1988;
planeinfo
[0].
planesize = 6;
planeinfo
[1].
model_id=1;
strcpy(planeinfo
[1].
model,"BOEING 555");
planeinfo
[1].
min_speed=200;
planeinfo
[1].
max_speed=600;
planeinfo
[1].
min_altitude=10000; //in metres
planeinfo
[1].
max_altitude=15000;
planeinfo
[1].
max_passengers=100;
planeinfo
[1].
weight=150;
planeinfo
[1].
year_of_manu=1990;
planeinfo
[1].
planesize = 6;
planeinfo
[2].
model_id=2;
strcpy(planeinfo
[2].
model,"BOEING 747");
planeinfo
[2].
min_speed=300;
planeinfo
[2].
max_speed=600;
planeinfo
[2].
min_altitude=10000; //in metres
planeinfo
[2].
max_altitude=15000;
planeinfo
[2].
max_passengers=150;
planeinfo
[2].
weight=200;
planeinfo
[2].
year_of_manu=1995;
planeinfo
[2].
planesize = 6;
planeinfo
[3].
model_id=3;
strcpy(planeinfo
[3].
model,"BOEING 777");
planeinfo
[3].
min_speed=200;
planeinfo
[3].
max_speed=600;
planeinfo
[3].
min_altitude=10000; //in metres
planeinfo
[3].
max_altitude=15000;
planeinfo
[3].
max_passengers=300;
planeinfo
[3].
weight=300;
planeinfo
[3].
year_of_manu=2000;
planeinfo
[3].
planesize = 6;
}