\Rasb14\T100DiceGraphic

DiceGraphic, a six sided die with graphics.

Summary

Methods
Properties
Constants
__construct()
roll()
value()
getHistogramMax()
getHistogramSequence()
getHistogramMin()
graphic()
No public properties found
SIDES
No protected methods found
$value
N/A
No private methods found
$sides
$sequence
N/A

Constants

SIDES

SIDES

Properties

$value

$value : integer

Type

integer — The current value of the die.

$sides

$sides : 

Type

$sequence

$sequence : array

Type

array — The numbers stored in sequence.

Methods

__construct()

__construct() 

Constructor to initiate the dice with six number of sides.

roll()

roll() : integer

Rolls the die.

Returns

integer —

as the current value of the die.

value()

value() : integer

Gets the current value of the upfacing side of the die.

Returns

integer —

as the current value of the die.

getHistogramMax()

getHistogramMax() : integer

Gets the maximum value for the histogram.

Returns

integer —

as the maximum value.

getHistogramSequence()

getHistogramSequence() : array

Get the sequence.

Returns

array —

as the sequence.

getHistogramMin()

getHistogramMin() : integer

Gets the minimum value for the histogram.

Returns

integer —

as the minimum value.

graphic()

graphic() : string

Gets the graphic representation of the die.

Returns

string —

as the graphical representation of the value.