Constants

SETTING_COLLECT_STATS_ENABLED

SETTING_COLLECT_STATS_ENABLED

SETTING_COLLECT_STATS_MINPLAYERS

SETTING_COLLECT_STATS_MINPLAYERS

SETTING_ON_SHOOT_PRESTORE

SETTING_ON_SHOOT_PRESTORE

STAT_PLAYTIME

STAT_PLAYTIME

STAT_MAP_WINS

STAT_MAP_WINS

STAT_ON_SHOOT

STAT_ON_SHOOT

STAT_ON_NEARMISS

STAT_ON_NEARMISS

STAT_ON_CAPTURE

STAT_ON_CAPTURE

STAT_ON_HIT

STAT_ON_HIT

STAT_ON_GOT_HIT

STAT_ON_GOT_HIT

STAT_ON_DEATH

STAT_ON_DEATH

STAT_ON_PLAYER_REQUEST_RESPAWN

STAT_ON_PLAYER_REQUEST_RESPAWN

STAT_ON_KILL

STAT_ON_KILL

STAT_LASER_SHOT

STAT_LASER_SHOT

STAT_LASER_HIT

STAT_LASER_HIT

STAT_ROCKET_SHOT

STAT_ROCKET_SHOT

STAT_ROCKET_HIT

STAT_ROCKET_HIT

STAT_ARROW_SHOT

STAT_ARROW_SHOT

STAT_ARROW_HIT

STAT_ARROW_HIT

STAT_NUCLEUS_SHOT

STAT_NUCLEUS_SHOT

STAT_NUCLEUS_HIT

STAT_NUCLEUS_HIT

SPECIAL_STAT_KILL_DEATH_RATIO

SPECIAL_STAT_KILL_DEATH_RATIO

Properties

$onShootArray

$onShootArray : 

Type

$startPlayLoopTime

$startPlayLoopTime : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new statistic collector instance

Parameters

\ManiaControl\ManiaControl $maniaControl

isCollectingEnabled()

isCollectingEnabled() : boolean

Checks if the Collecting is Enabled

Returns

boolean

checkForMinimumPlayers()

checkForMinimumPlayers() : boolean

Check for the Minimum Amount of Players to collect

Returns

boolean

handleOnShoot()

handleOnShoot(string  $login, integer  $weaponNumber) 

Handle Player Shots

Parameters

string $login
integer $weaponNumber

getWeaponStat()

getWeaponStat(integer  $weaponNumber, boolean  $shot = true) : string

Get the Weapon stat

Parameters

integer $weaponNumber
boolean $shot

Returns

string