-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstates.inc.php
196 lines (182 loc) · 5.41 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* Now Boarding implementation : © quietmint
*
* 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.
* -----
*/
$machinestates = [
// BGA framework state, do not modify
N_STATE_BEGIN => [
'name' => 'gameSetup',
'action' => 'stGameSetup',
'description' => '',
'transitions' => [
'' => N_STATE_BUILD
],
'type' => 'manager',
],
N_STATE_BUILD => [
'name' => 'build',
'action' => 'stInitPrivate',
'description' => clienttranslate('Wait for others to choose'),
'descriptionmyturn' => '',
'initialprivate' => N_STATE_BUILD_ALLIANCE,
'possibleactions' => [
'undo',
],
'transitions' => [
'maintenance' => N_STATE_MAINTENANCE,
],
'type' => 'multipleactiveplayer',
],
N_STATE_BUILD_ALLIANCE => [
'name' => 'buildAlliance',
'args' => 'argBuildAlliance',
'descriptionmyturn' => clienttranslate('Choose a starting airport and alliance'),
'possibleactions' => [
'buy',
],
'transitions' => [
'buildAlliance2' => N_STATE_BUILD_ALLIANCE2,
'buildUpgrade' => N_STATE_BUILD_UPGRADE,
],
'type' => 'private',
],
N_STATE_BUILD_ALLIANCE2 => [
'name' => 'buildAlliance2',
'args' => 'argBuildAlliance2',
'descriptionmyturn' => clienttranslate('Choose an additional alliance'),
'possibleactions' => [
'buy',
'undo',
],
'transitions' => [
'buildAlliance' => N_STATE_BUILD_ALLIANCE,
'buildUpgrade' => N_STATE_BUILD_UPGRADE,
],
'type' => 'private',
],
N_STATE_BUILD_UPGRADE => [
'name' => 'buildUpgrade',
'args' => 'argBuildUpgrade',
'descriptionmyturn' => clienttranslate('Choose a starting upgrade'),
'possibleactions' => [
'buy',
'undo',
],
'transitions' => [
'buildAlliance' => N_STATE_BUILD_ALLIANCE,
'buildAlliance2' => N_STATE_BUILD_ALLIANCE2
],
'type' => 'private',
],
N_STATE_MAINTENANCE => [
'name' => 'maintenance',
'action' => 'stMaintenance',
'description' => '',
'transitions' => [
'end' => N_STATE_END,
'prepare' => N_STATE_PREPARE,
],
'type' => 'game',
],
N_STATE_PREPARE => [
'name' => 'prepare',
'args' => 'argPrepare',
'action' => 'stPrepare',
'description' => clienttranslate('Wait for others to prepare for ${hourDesc} ${round}'),
'descriptionmyturn' => '',
'initialprivate' => N_STATE_PREPARE_BUY,
'possibleactions' => [
'undo',
],
'transitions' => [
'reveal' => N_STATE_REVEAL,
],
'type' => 'multipleactiveplayer',
'updateGameProgression' => true,
],
N_STATE_PREPARE_BUY => [
'name' => 'prepareBuy',
'args' => 'argPrepareBuy',
'descriptionmyturn' => clienttranslate('Prepare for ${hourDesc} ${round}'),
'possibleactions' => [
'buy',
'prepareDone',
'undo',
'vip',
],
'transitions' => [
'prepareBuy' => N_STATE_PREPARE_BUY,
'preparePay' => N_STATE_PREPARE_PAY,
],
'type' => 'private',
],
N_STATE_PREPARE_PAY => [
'name' => 'preparePay',
'args' => 'argPreparePay',
'descriptionmyturn' => clienttranslate('Choose how to pay $${debt}'),
'possibleactions' => [
'buyAgain',
'pay',
],
'transitions' => [
'prepareBuy' => N_STATE_PREPARE_BUY,
],
'type' => 'private',
],
N_STATE_REVEAL => [
'name' => 'reveal',
'action' => 'stReveal',
'description' => '',
'transitions' => [
'fly' => N_STATE_FLY,
],
'type' => 'game',
],
N_STATE_FLY => [
'name' => 'fly',
'action' => 'stInitPrivate',
'args' => 'argFly',
'description' => clienttranslate('Wait for others to finish'),
'descriptionmyturn' => '',
'initialprivate' => N_STATE_FLY_PRIVATE,
'possibleactions' => [
'flyAgain',
'flyTimer',
],
'transitions' => [
'maintenance' => N_STATE_MAINTENANCE,
],
'type' => 'multipleactiveplayer',
],
N_STATE_FLY_PRIVATE => [
'name' => 'flyPrivate',
'args' => 'argFlyPrivate',
'descriptionmyturn' => clienttranslate('Go!'),
'possibleactions' => [
'board',
'deplane',
'flyDone',
'flyTimer',
'move',
],
'transitions' => [
'flyPrivate' => N_STATE_FLY_PRIVATE,
],
'type' => 'private',
],
// BGA framework state, do not modify
N_STATE_END => [
'name' => 'gameEnd',
'description' => clienttranslate('End of game'),
'type' => 'manager',
'action' => 'stGameEnd',
'args' => 'argGameEnd',
'updateGameProgression' => true,
]
];