GameLevelRules Class Reference

Inheritance diagram for GameLevelRules:
GeneralGameLevelRules SubLevelGameLevelRules AccountManagementGameLevelRules CommunicationGameLevelRules NewBusinessGameLevelRules SalesGameLevelRules TimeManagementGameLevelRules

Static Public Member Functions

static setLastLevel ($level)
static setLevelPointMap ($levelPointMap)
static isLastLevel ($level)
static getMinimumPointsForLevel ($level)
static hasBonusPointsOnLevelChange ()
static getLevelBonusPointType ()
static getLevelBonusPointValue ($level)
static getDisplayLabel ()

Static Protected Attributes

static $lastLevel = null
static $levelPointMap = array()

Detailed Description

Base class defining rules for game levels

Definition at line 40 of file GameLevelRules.php.


Member Function Documentation

static setLastLevel ( level  )  [static]

Can be used by application component to override and set last level value.

Parameters:
integer $level

Definition at line 58 of file GameLevelRules.php.

static setLevelPointMap ( levelPointMap  )  [static]

Can be used by application component to override and set level point map.

Parameters:
array $levelPointMap

Definition at line 68 of file GameLevelRules.php.

static isLastLevel ( level  )  [static]
Parameters:
integer $level
Returns:
bool

Definition at line 78 of file GameLevelRules.php.

static getMinimumPointsForLevel ( level  )  [static]
Parameters:
integer $level
Returns:
mixed
Exceptions:
NotSupportedException 

Definition at line 93 of file GameLevelRules.php.

static getLevelBonusPointType (  )  [static]

Override in child if you want to have bonus points. This will define what point type the bonus points are applied towards

Reimplemented in SubLevelGameLevelRules.

Definition at line 112 of file GameLevelRules.php.

static getLevelBonusPointValue ( level  )  [static]

Override in child if you want to have bonus points. This will return the bonus points applicable given a $level

Parameters:
int $level
Exceptions:
NotImplementedException 

Reimplemented in SubLevelGameLevelRules.

Definition at line 123 of file GameLevelRules.php.

static getDisplayLabel (  )  [static]

Override in child to have a display label for the type of level.

Reimplemented in AccountManagementGameLevelRules, CommunicationGameLevelRules, GeneralGameLevelRules, NewBusinessGameLevelRules, SalesGameLevelRules, and TimeManagementGameLevelRules.

Definition at line 132 of file GameLevelRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Mar 24 07:10:26 2017