-
Notifications
You must be signed in to change notification settings - Fork 0
/
states.inc.php
88 lines (80 loc) · 2.42 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
<?php
/**
*------
* BGA framework: © Gregory Isabelli <[email protected]> & Emmanuel Colin <[email protected]>
* MrJackPocket implementation : © Artem Katnov <[email protected]>
*
* 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
*
* MrJackPocket game states description
*
*/
$machinestates = array(
// The initial state. Please do not modify.
1 => array(
"name" => "gameSetup",
"description" => "",
"type" => "manager",
"action" => "stGameSetup",
"transitions" => array("" => 10)
),
10 => array(
"name" => "playerTurn",
"description" => clienttranslate('${actplayer} must choose an action'),
"descriptionmyturn" => clienttranslate('${you} must choose an action'),
"type" => "activeplayer",
"possibleactions" => array( "detective", "joker", "alibi", "exchange", "rotate"),
"transitions" => array(
"nextTurn" => 24,
),
),
24 => array(
"name" => "nextTurn",
"type" => "game",
"action" => "stNextTurn",
"updateGameProgression" => true,
"transitions" => array(
"playerTurn" => 10,
"roundEnd" => 25,
),
),
25 => array(
"name" => "roundEnd",
"type" => "game",
"action" => "stEndOfRound",
"updateGameProgression" => true,
"transitions" => array(
"playerTurn" => 24,
"gameEndAnimation" => 26,
),
),
26 => array(
"name" => "gameEndAnimation",
"type" => "game",
"action" => "stEndOfGame",
"transitions" => array(
"gameEndApprove" => 27,
),
),
27 => array(
"name" => "gameEndApprove",
"type" => "multipleactiveplayer",
"possibleactions" => array( "confirmGameEnd"),
"transitions" => array(
"gameEnd" => 99,
),
),
// Final state.
// Please do not modify (and do not overload action/args methods).
99 => array(
"name" => "gameEnd",
"description" => clienttranslate("End of game"),
"type" => "manager",
"action" => "stGameEnd",
"args" => "argGameEnd"
)
);