Index

G R 
All Classes|All Packages

G

GameDie - Class in <Unnamed>
A GameDie object represents a single game die.
GameDie() - Constructor for class GameDie
construct a new die with the default number of sides, 6, and an initial top value of 1
GameDie(int) - Constructor for class GameDie
construct a new die with the user-specified number of sides and an initial top value of 1
getCurrTop() - Method in class GameDie
return the die's current top value
getNumSides() - Method in class GameDie
return the calling die's number of sides

R

roll() - Method in class GameDie
expects nothing, computes a pseudo-random int in [1, num_sides], changes currTop of the calling GameDie to that computed value, and also returns that computed value as the result of this call to roll
G R 
All Classes|All Packages