PHP Classes
elePHPant
Icontem

File: game/settings.php

Recommend this page to a friend!
  Classes of Dave Smith  >  The Gameboard  >  game/settings.php  >  Download  
File: game/settings.php
Role: Configuration script
Content type: text/plain
Description: Configuration Settings
Class: The Gameboard
Implement a board game using the takeover strategy
Author: By
Last change:
Date: 1 year ago
Size: 2,582 bytes
 

Contents

Class file image Download
<?php
$this
->docRoot = $_SERVER['DOCUMENT_ROOT'].'/';

$this->boardName = 'The Game Board';

$this->branding = '<em>powered by the gameboard class</em>';

$this->game = array(
   
'sipstrip' => 'Sip n Strip',
   
'truthdare' => 'Truth or Dare',
);

$this->player = array(
   
1 => array(
       
'active' => false,
       
'name' => 'Player 1',
       
'pos' => 0,
       
'color' => 'crimson'
   
),
   
2 => array(
       
'active' => false,
       
'name' => 'Player 2',
       
'pos' => 0,
       
'color' => 'royalblue'
   
),
   
3 => array(
       
'active' => false,
       
'name' => 'Player 3',
       
'pos' => 0,
       
'color' => 'mediumpurple'
   
),
   
4 => array(
       
'active' => false,
       
'name' => 'Player 4',
       
'pos' => 0,
       
'color' => 'green'
   
),
   
5 => array(
       
'active' => false,
       
'name' => 'Player 5',
       
'pos' => 0,
       
'color' => 'gold'
   
),
   
6 => array(
       
'active' => false,
       
'name' => 'Player 6',
       
'pos' => 0,
       
'color' => 'sienna'
   
),
   
7 => array(
       
'active' => false,
       
'name' => 'Player 7',
       
'pos' => 0,
       
'color' => 'coral'
   
),
   
8 => array(
       
'active' => false,
       
'name' => 'Player 8',
       
'pos' => 0,
       
'color' => 'hotpink'
   
)
);

$this->minPlayers = 2;

$this->startTileName = 'Start';

$this->startTileColor = 'cornsilk';

$this->emptyTileColor = 'white';

$this->freeTileName = 'Free Pass';

$this->freeTileColor = 'lightgray';

$this->forceTile1Name = 'Zone 1';

$this->forceTile1Color = 'lightcyan';

$this->forceTile2Name = 'Zone 2';

$this->forceTile2Color = 'lavender';

$this->playerBorder = 'solid thin black';

$this->onStartMsg = 'You have landed on '.$this->startTileName;

$this->passStartMsg = 'You have passed '.$this->startTileName;

$this->onFreeMsg = 'You have landed on '.$this->freeTileName;

$this->onForce1Msg = 'You have landed on '.$this->forceTile1Name;

$this->onForce2Msg = 'You have landed on '.$this->forceTile2Name;

$this->onEmptyMsg = 'This tile has been claimed';

$this->onOwnMsg = 'You have landed on your own tile';

/* Replacemnt Tags
[claimedBy] = Players name that claims the tile
[claimedColor] = Color of the claimed tile
*/
$this->onClaimedMsg = 'You have landed on a tile claimed by [claimedBy]';

$this->claimMsg = 'You have claimed this tile';

//declared variables with data supplied by the game
$this->deck1 = array();

$this->deck2 = array();
?>