\Rasb14\T100Player

Player, a class containing player data.

Summary

Methods
Properties
Constants
__construct()
save()
removeUnsaved()
addUnsaved()
savedPoints()
unsavedPoints()
name()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$unsavedPoints
$savedPoints
N/A

Properties

$name

$name : string

Type

string — The name of the player.

$unsavedPoints

$unsavedPoints : 

Type

$savedPoints

$savedPoints : 

Type

Methods

__construct()

__construct(string  $name, integer  $savedPoints = null) 

Constructor to create a Player

Parameters

string $name

The name of the player.

integer $savedPoints

The starting amount of points for a player.

save()

save() : \Rasb14\T100\void.

Saves the unsaved points.

Returns

\Rasb14\T100\void.

removeUnsaved()

removeUnsaved() : \Rasb14\T100\void.

Removes the unsaved points.

Returns

\Rasb14\T100\void.

addUnsaved()

addUnsaved(integer  $value) : \Rasb14\T100\void.

Adds to the unsaved points.

Parameters

integer $value

The value to add.

Returns

\Rasb14\T100\void.

savedPoints()

savedPoints() : integer

Gets the saved points.

Returns

integer —

as saved points.

unsavedPoints()

unsavedPoints() : integer

Gets the unsaved points.

Returns

integer —

as unsaved points.

name()

name() : string

Gets the players name.

Returns

string —

as player name.