diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-21 16:09:57 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-21 16:09:57 -0400 |
commit | 29affe09b459127422544474986a69d83b2fe5ac (patch) | |
tree | 8c4fab3dd23615f1c37e6f1d75a5c703ca19a70b /const.js | |
parent | 27a606cfe34b324f625b45944c999da245994072 (diff) | |
download | vijayanagara-29affe09b459127422544474986a69d83b2fe5ac.tar.gz |
Data package.
Diffstat (limited to 'const.js')
-rw-r--r-- | const.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/const.js b/const.js new file mode 100644 index 0000000..32003b8 --- /dev/null +++ b/const.js @@ -0,0 +1,36 @@ + +// Factions +const DS = 0 +const BK = 1 +const VE = 2 +const MI = 3 + +// Role names +const NAME_DS = "DS" +const NAME_BK = "BK" +const NAME_VE = "VE" +const NAME_SOLO = "Solo" + +// Player pieces types +const DISC = 0 +const ELITE = 1 +const TROOPS = 2 + +// Pieces status +const AVAILABLE = -1 +const OUT_OF_PLAY = -2 +const ANY_PIECES = [ DISC, ELITE, TROOPS ] +const PIECE_FACTION_TYPE_NAME = [ + [ "Qasbah", "Governors", "Troops" ], + [ "Fort", "Amirs", null ], + [ "Temple", "Rajas", null ], + [ null, null, "Invaders"] +] + +// 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 |