Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Feb 22 07:10:51 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8