-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathairport.js
39 lines (29 loc) · 834 Bytes
/
airport.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* The airport object */
function Airport() {
// General fix data
this.name = ''; // Airport commercial name
this.icao = ''; // Airport ICAO code
// this.runways = []; // Runways in airport
// Airport Center
this.latitude = 0;
this.longitude = 0;
this.x = 0;
this.y = 0;
// Graphic object
this.gDraw = new createjs.Container();
this.gLabel1 = new createjs.Text("", "normal 10px Courier", RWY_TEXT_COLOR);
this.gLabel1.x = 0;
this.gLabel1.y = 0;
this.gLabel1.lineHeight = 9;
this.gDraw.addChild(this.gRwy, this.gLabel1);
}
Airport.prototype.setX = function ( x ) {
this.x = x;
this.gDraw.x = x;
}
Airport.prototype.setY = function ( y ) {
this.y = y;
this.gDraw.y = y;
}
Airport.prototype.setScreenPosition = function() {
}