summaryrefslogtreecommitdiff
path: root/const.js
blob: bb37d83d9c8385395c50baa927d517df5d556240 (plain)
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
38
39
40
41
42
43
44
45
46
47

// Factions
const DS = 0
const BK = 1
const VE = 2
const MI = 3
const FACTIONS = [DS, BK, VE]
const REBEL_FACTIONS = [BK, VE]

// Role names
const NAME_DS = "Delhi Sultanate"
const NAME_BK = "Bahmani Kingdom"
const NAME_VE = "Vijayanagara Empire"
const NAME_SOLO = "Solo"

// Player pieces types
const DISC = 0
const ELITE = 1
const TROOPS = 2
const UNITS = [TROOPS, ELITE]

// Pieces status
const AVAILABLE = -1
const OUT_OF_PLAY = -2
const ANY_PIECES = [ DISC, ELITE, TROOPS ]
const PIECE_FACTION_TYPE_NAME = [
	[ "Qasbah", "Governor", "Troop" ],
	[ "Fort", "Amir", null ],
	[ "Temple", "Raja", null ],
	[ null, null, "Invader" ]
]
const PIECE_FACTION_TYPE_SYMBOL = [
	[ "DDS", "EDS", "CDS" ],
	[ "DBK", "EBK", null ],
	[ "DVE", "EVE", null ],
	[ null, null, "CMI" ]
]
const LAST_CAVALRY = 9
const INF_TOKEN = [null, "IBK", "IVE"]

// Sequence of Play options
const ELIGIBLE = 0
const SOP_LIMITED_COMMAND = 1
const SOP_COMMAND_DECREE = 2
const SOP_EVENT_OR_COMMAND = 3
const SOP_PASS = 4
const INELIGIBLE = 5