D G R S

D

Die - class Die.
The Die class represents a die for games of chance using dice.
Die() - Constructor for class Die
Constructs a 6 sided die with 1 facing up.
Die(int) - Constructor for class Die
Constructs a die of a specified number of sides with 1 facing up.
Die(int, int) - Constructor for class Die
Constructs a die of a given number of sides and side facing up.

G

getTop() - Method in class Die
Gets die's side facing up.

R

roll() - Method in class Die
Randomly sets the die's side facing up to be: 1 <= top <= sides.

S

setTop(int) - Method in class Die
Sets die's side facing up to specified value.

D G R S