-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaterial.inc.php
45 lines (43 loc) · 1.7 KB
/
material.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
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* KingdomBuilder implementation : © Timothée Pecatte tim.pecatte@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.
* -----
*
* material.inc.php
*
* KingdomBuilder game material description
*
* Here, you can describe the material of your game with PHP variables.
*
* This file is loaded in your game logic class constructor, ie these variables
* are available everywhere in your game logic code.
*
*/
require_once("modules/Utils.class.php");
require_once("modules/KingdomBuilderPlayer.class.php");
require_once("modules/KingdomBuilderLog.class.php");
require_once("modules/KingdomBuilderBoard.class.php");
require_once("modules/KingdomBuilderCards.class.php");
require_once("modules/KingdomBuilderObjective.class.php");
foreach (KingdomBuilderCards::$objectiveClasses as $className) {
require_once("modules/objectives/$className.class.php");
}
require_once("modules/KingdomBuilderPlayerManager.class.php");
require_once("modules/KingdomBuilderLocationManager.class.php");
require_once("modules/KingdomBuilderLocation.class.php");
foreach (KingdomBuilderLocationManager::$classes as $className) {
require_once("modules/locations/$className.class.php");
}
$this->terrainNames = [
HEX_GRASS => clienttranslate('a Grass'),
HEX_CANYON => clienttranslate('a Canyon'),
HEX_DESERT => clienttranslate('a Desert'),
HEX_FLOWER => clienttranslate('a Flower Field'),
HEX_FOREST => clienttranslate('a Forest'),
HEX_WATER => clienttranslate('a Water'),
];