Repository navigation
Expand file tree
/
Copy pathgameoptions.inc.php
More file actions
92 lines (87 loc) · 2.86 KB
/
Copy pathgameoptions.inc.php
File metadata and controls
92 lines (87 loc) · 2.86 KB
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
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* Altered implementation : © <Your name here> <Your email address here>
*
* 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.
* -----
*
* gameoptions.inc.php
*
* Altered game options description
*
* In this file, you can define your game options (= game variants).
*
* Note: If your game has no variant, you don't have to modify this file.
*
* Note²: All options defined in this file should have a corresponding "game state labels"
* with the same ID (see "initGameStateLabels" in altered.game.php)
*
* !! It is not a good idea to modify this file when a game is running !!
*
*/
namespace ALT;
require_once 'modules/php/constants.inc.php';
$game_options = [
// OPTION_BEGINNER => [
// 'name' => clienttranslate('Beginner mode'),
// 'default' => OPTION_ENABLED,
// 'values' => [
// OPTION_DISABLED => [
// 'name' => 'Disabled',
// 'tmdisplay' => totranslate('Standard'),
// 'description' => totranslate('Custom & starter decks can be used'),
// 'nobeginner' => true,
// ],
// OPTION_ENABLED => [
// 'name' => 'Enabled',
// 'tmdisplay' => totranslate('Beginner mode'),
// 'description' => totranslate('Game can be played only with starter decks'),
// ],
// ]
// ],
OPTION_UNDO => [
'name' => clienttranslate('Undo'),
'values' => [
OPTION_DISABLED => [
'name' => 'Disabled',
'tmdisplay' => totranslate('no undo'),
'description' => totranslate('Undo is disabled for everyone'),
],
OPTION_ENABLED => [
'name' => 'Enabled',
'description' => totranslate('Undo can be disabled as a player preference'),
],
]
]
];
$game_preferences = [
OPTION_CONFIRM => [
'name' => totranslate('Turn confirmation'),
'needReload' => false,
'default' => OPTION_CONFIRM_DISABLED,
'values' => [
OPTION_CONFIRM_ENABLED => ['name' => totranslate('Enabled')],
OPTION_CONFIRM_DISABLED => ['name' => totranslate('Disabled')],
OPTION_CONFIRM_TIMER => ['name' => totranslate('Enabled with timer')],
],
],
OPTION_CONFIRM_UNDOABLE => [
'name' => totranslate('Undoable actions confirmation'),
'needReload' => false,
'values' => [
OPTION_CONFIRM_ENABLED => ['name' => totranslate('Enabled')],
OPTION_CONFIRM_DISABLED => ['name' => totranslate('Disabled')],
],
],
OPTION_PLAYER_UNDO => [
'name' => totranslate('Undo:'),
'needReload' => false,
'values' => [
OPTION_PLAYER_UNDO_ENABLED => ['name' => totranslate('Enabled')],
OPTION_PLAYER_UNDO_DISABLED => ['name' => totranslate('Disabled')],
],
],
];