tmaterial.inc.php - hadarawgs - Hadara adaptation for boardgamearena.com
(HTM) git clone git://git.z3bra.org/hadarawgs.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tmaterial.inc.php (1766B)
---
1 <?php
2 /**
3 *------
4 * BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
5 * hadarawgs implementation : © Willy Goiffon <dev@z3bra.org>
6 *
7 * This code has been produced on the BGA studio platform for use on http://boardgamearena.com.
8 * See http://en.boardgamearena.com/#!doc/Studio for more information.
9 * -----
10 *
11 * material.inc.php
12 *
13 * hadarawgs game material description
14 *
15 * Here, you can describe the material of your game with PHP variables.
16 *
17 * This file is loaded in your game logic class constructor, ie these variables
18 * are available everywhere in your game logic code.
19 *
20 */
21
22
23 $this->card_types = array('setup', 'income', 'military', 'culture', 'food', 'science');
24
25 // Setup cards, given at game start to players
26 $this->card_setup = array(
27 array( 'type' => "initiative", 'type_arg' => 1, 'nbr' => 1),
28 array( 'type' => "initiative", 'type_arg' => 2, 'nbr' => 1),
29 array( 'type' => "initiative", 'type_arg' => 3, 'nbr' => 1),
30 array( 'type' => "initiative", 'type_arg' => 4, 'nbr' => 1),
31 array( 'type' => "initiative", 'type_arg' => 5, 'nbr' => 1),
32 );
33
34 // Bonus given by the setup cards (corresponding to 'type_arg')
35 $this->initiative = array(
36 1 => array("initiative" => 1, "income" => 3, "military" => 2, "culture" => 1, "food" => 4, "coins" => 8),
37 2 => array("initiative" => 2, "income" => 2, "military" => 1, "culture" => 3, "food" => 4, "coins" => 8),
38 3 => array("initiative" => 3, "income" => 3, "military" => 2, "culture" => 2, "food" => 3, "coins" => 8),
39 4 => array("initiative" => 4, "income" => 2, "military" => 1, "culture" => 2, "food" => 5, "coins" => 9),
40 5 => array("initiative" => 5, "income" => 2, "military" => 2, "culture" => 1, "food" => 5, "coins" => 9),
41 );