-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCONSTANTS.java
34 lines (24 loc) · 1.2 KB
/
CONSTANTS.java
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
public class CONSTANTS {
private CONSTANTS() {
}
public final static int SINGLE_ENGINE = 1;
public final static int TURBO = 2;
public final static int JET = 3;
public static final int ROWS = 30;
public static final int COLS = 60;
public static final int DELAY = 1;
public static final int TILE_SIZE = 16;
public static final int TILE_SIZE_IN_MILES = 20;
public static final int MAP_HEIGHT = CONSTANTS.ROWS * CONSTANTS.TILE_SIZE;
public static final int MAP_WIDTH = CONSTANTS.COLS * CONSTANTS.TILE_SIZE;
public static final int STATUS_HEIGHT = 2 * CONSTANTS.TILE_SIZE;
public static final int STATUS_WIDTH = MAP_WIDTH;
public static final int MESSAGES_WIDTH = 20 * CONSTANTS.TILE_SIZE;
public static final int MESSAGES_HEIGHT = MAP_HEIGHT;
public static final int FRAME_WIDTH = MAP_WIDTH + MESSAGES_WIDTH;
public static final int FRAME_HEIGHT = 2 * STATUS_HEIGHT + MAP_HEIGHT;
public static final int SIMULATION_PANE_WIDTH = MAP_WIDTH + MESSAGES_WIDTH;
public static final int SIMULATION_PANE_HEIGHT = MAP_HEIGHT;
public static final double TIME_RATIO = 60.0 / 5;
public static final double PIXEL_TO_MILES_RATIO = 16.0 / 20.0;
}