#include <GameClock.h>
Public Member Functions | |
CGameClock (uint32 baseline=1) | |
CGameClock. | |
~CGameClock () | |
~CGameClock | |
void | SetBaseline (uint32 baseline) |
SetBaseline. | |
uint64 | GetBaseline () const |
SetBaseline. | |
void | SetPlayerTimeAllotment (uint32 PlayerTime) |
SetPlayerTimeAllotment. | |
uint32 | GetPlayerTimeAllotment () const |
GetPlayerTimeAllotment. | |
real32 | GetHandicapPercent (uint32 PlayerBenchmark) const |
GetHandicapPercent. | |
CCountdownTimer * | GetPlayerClock (uint32 PlayerBenchmark) |
GetPlayerClock. |
Description:
Limitations:
|
CGameClock. Description: This function initializes the class's internal attributes
|
|
~CGameClock Description: This destructor was included for maintenance purposes only
|
|
SetBaseline. Description: Sets the baseline performance measure. Player time allotments are scaled to that their performance equals this measure.
|
|
GetHandicapPercent. Description: This function returns the amount of scaling that will be applied to a player whose benchmark value equals the value supplied.
|
|
GetPlayerClock. Description: A new countdown timer is generated and initialized to the player's game time. The time value assigned is scaled according to the player's benchmark value.
|
|
GetPlayerTimeAllotment. Description: Returns the amount of time that is assigned to each player at the begining of the game or round.
|
|
SetBaseline. Description: Sets the baseline performance measure. Player time allotments are scaled to that their performance equals this measure.
|
|
SetPlayerTimeAllotment. Description: Sets the amount of time alloted to each player at the beginining of the game or round. This is the time value that is scaled based on the player's benchmark value and its ratio to the baseline.
|