-
Notifications
You must be signed in to change notification settings - Fork 0
/
states.inc.php
158 lines (142 loc) · 7 KB
/
states.inc.php
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* Crypt implementation : © Jordi Jansen <thestartplayer@gmail.com>
*
* This code has been produced on the BGA studio platform for use on http://boardgamearena.com.
* See http://en.boardgamearena.com/#!doc/Studio for more information.
* -----
*
* states.inc.php
*
* Crypt game states description
*
*/
$machinestates = array(
// The initial state. Please do not modify.
STATE_SET_UP_ID => array(
"name" => STATE_SET_UP,
"description" => "",
"type" => "manager",
"action" => "stGameSetup",
"transitions" => array( "" => STATE_REVEAL_TREASURE_ID )
),
STATE_REVEAL_TREASURE_ID => array(
"name" => STATE_REVEAL_TREASURE,
"description" => clienttranslate('Reveal: revealing treasure cards...'),
"type" => "game",
"action" => "stRevealTreasure",
"updateGameProgression" => false,
"transitions" => array( STATE_BEFORE_CLAIM_PHASE => STATE_BEFORE_CLAIM_PHASE_ID)
),
STATE_BEFORE_CLAIM_PHASE_ID => array(
"name" => STATE_BEFORE_CLAIM_PHASE,
"description" => '',
"type" => "game",
"action" => "stBeforeClaimPhase",
"updateGameProgression" => false,
"transitions" => array(STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS => STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS_ID, STATE_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS => STATE_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS_ID)
),
STATE_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS_ID => array(
"name" => STATE_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS,
"description" => clienttranslate('${actplayer} may activate collector(s)'),
"descriptionmyturn" => clienttranslate('${you} may activate collector(s)'),
"type" => "activeplayer",
"updateGameProgression" => false,
"possibleactions" => array( ACTION_ACTIVATE_COLLECTOR, ACTION_END_TURN ),
"transitions" => array( STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS => STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS_ID )
),
STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS_ID => array(
"name" => STATE_END_BEFORE_CLAIM_PHASE_ACTIVATE_COLLECTORS,
"description" => '',
"type" => "game",
"action" => "stEndBeforeClaimPhaseActivateCollectors",
"updateGameProgression" => false,
"transitions" => array(STATE_BEFORE_CLAIM_PHASE => STATE_BEFORE_CLAIM_PHASE_ID, STATE_BEFORE_PLAYER_TURN => STATE_BEFORE_PLAYER_TURN_ID)
),
STATE_BEFORE_PLAYER_TURN_ID => array(
"name" => STATE_BEFORE_PLAYER_TURN,
"description" => '',
"type" => "game",
"action" => "stBeforePlayerTurn",
"updateGameProgression" => false,
"transitions" => array(STATE_PLAYER_TURN => STATE_PLAYER_TURN_ID, STATE_AFTER_PLAYER_TURN => STATE_AFTER_PLAYER_TURN_ID)
),
STATE_PLAYER_TURN_ID => array(
"name" => STATE_PLAYER_TURN,
"description" => clienttranslate('Claim: ${actplayer} must claim treasure card(s) or recover servant dice'),
"descriptionmyturn" => clienttranslate('Claim: ${you} must claim treasure card(s) or recover servant dice'),
"args" => "argStatePlayerTurn",
"type" => "activeplayer",
"possibleactions" => array( ACTION_CLAIM_TREASURE, ACTION_RECOVER_SERVANTS ),
"transitions" => array( STATE_AFTER_PLAYER_TURN => STATE_AFTER_PLAYER_TURN_ID )
),
STATE_AFTER_PLAYER_TURN_ID => array(
"name" => STATE_AFTER_PLAYER_TURN,
"description" => '',
"type" => "game",
"action" => "stAfterPlayerTurn",
"updateGameProgression" => false,
"transitions" => array(STATE_BEFORE_PLAYER_TURN => STATE_BEFORE_PLAYER_TURN_ID, STATE_COLLECT_TREASURE => STATE_COLLECT_TREASURE_ID)
),
STATE_COLLECT_TREASURE_ID => array(
"name" => STATE_COLLECT_TREASURE,
"description" => clienttranslate('Collect: distributing treasure card(s) to players...'),
"type" => "game",
"action" => "stCollectTreasure",
"updateGameProgression" => false,
"transitions" => array( STATE_AFTER_COLLECT_TREASURE => STATE_AFTER_COLLECT_TREASURE_ID )
),
STATE_AFTER_COLLECT_TREASURE_ID => array(
"name" => STATE_AFTER_COLLECT_TREASURE,
"description" => '',
"type" => "game",
"action" => "stAfterCollectTreasure",
"updateGameProgression" => false,
"transitions" => array(STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS => STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS_ID, STATE_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS => STATE_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS_ID)
),
STATE_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS_ID => array(
"name" => STATE_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS,
"description" => clienttranslate('${actplayer} may activate collector(s)'),
"descriptionmyturn" => clienttranslate('${you} may activate collector(s)'),
"args" => "argStateAfterCollectTreasureActivateCollectors",
"type" => "activeplayer",
"updateGameProgression" => false,
"possibleactions" => array( ACTION_ACTIVATE_COLLECTOR, ACTION_END_TURN ),
"transitions" => array( STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS => STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS_ID )
),
STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS_ID => array(
"name" => STATE_END_AFTER_COLLECT_TREASURE_ACTIVATE_COLLECTORS,
"description" => '',
"type" => "game",
"action" => "stEndAfterCollectTreasureActivateCollectors",
"updateGameProgression" => false,
"transitions" => array(STATE_AFTER_COLLECT_TREASURE => STATE_AFTER_COLLECT_TREASURE_ID, STATE_PASS_TORCH_CARDS => STATE_PASS_TORCH_CARDS_ID, STATE_BEFORE_GAME_END => STATE_BEFORE_GAME_END_ID)
),
STATE_PASS_TORCH_CARDS_ID => array(
"name" => STATE_PASS_TORCH_CARDS,
"description" => clienttranslate('Pass the Torch: passing torch cards...'),
"type" => "game",
"action" => "stPassTorchCards",
"updateGameProgression" => false,
"transitions" => array( STATE_REVEAL_TREASURE => STATE_REVEAL_TREASURE_ID )
),
STATE_BEFORE_GAME_END_ID => array(
"name" => STATE_BEFORE_GAME_END,
"description" => clienttranslate('Final Scoring'),
"type" => "game",
"action" => "stBeforeGameEnd",
"updateGameProgression" => false,
"transitions" => array( STATE_GAME_END => STATE_GAME_END_ID )
),
// Final state.
// Please do not modify (and do not overload action/args methods).
STATE_GAME_END_ID => array(
"name" => STATE_GAME_END,
"description" => clienttranslate("End of game"),
"type" => "manager",
"action" => "stGameEnd",
"args" => "argGameEnd"
)
);