-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConstants.gd
36 lines (30 loc) · 1.25 KB
/
Constants.gd
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
extends Node
enum NATIONS {AUSTRIA, ENGLAND, FRANCE, GERMANY, ITALY, RUSSIA, TURKEY}
#var COLORS = {ENGLAND: Color8(28, 37, 250),
# FRANCE: Color8(52, 190, 230),
# GERMANY: Color8(247, 150, 24),
# AUSTRIA: Color8(140, 83, 214),
# ITALY: Color8(41, 175, 36),
# RUSSIA: Color8(226, 36, 36),
# TURKEY: Color8(234, 227, 32)}
var COLORS = {NATIONS.ENGLAND: Color8(92, 92, 255),
NATIONS.FRANCE: Color8(85, 255, 255),
NATIONS.GERMANY: Color8(75, 75, 75),
NATIONS.AUSTRIA: Color8(252, 127, 0),
NATIONS.ITALY: Color8(85, 255, 85),
NATIONS.RUSSIA: Color8(252, 57, 31),
NATIONS.TURKEY: Color8(255, 255, 85)}
var SUPPLY_CENTERS = ["BER", "MUN", "KIE", "POR", "SPA", "MAR", "PAR",
"BRE", "BEL", "HOL", "LON", "LVR", "EDI", "DEN",
"NOR", "SWE", "TUN", "NAP", "ROM", "VEN", "TRI",
"VIE", "BUD", "SER", "BUL", "RUM", "WAR", "MOS",
"STP", "SEV", "CON", "SMY", "ANK", "GRE"]
enum MOVES {MOVE, HOLD, SUPPORT, CONVOY, NONE, DISBAND}
enum UNIT_TYPES {ARMY, FLEET}
# starting units
var STARTING_UNITS = [{"pos": Vector2(250, 250),
"nation": NATIONS.FRANCE,
"type": UNIT_TYPES.FLEET},
{"pos": Vector2(350, 350),
"nation": NATIONS.GERMANY,
"type": UNIT_TYPES.ARMY}]