|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPlayer
public class Player
This class is an implementation of a player object, for the stupid dice game
| Constructor Summary | |
|---|---|
Player()
Default constructor, creates a player and gives him his 2 dice |
|
| Method Summary | |
|---|---|
int |
getTotal()
get the sum of the two dice |
int |
rollDice()
roll the two dice |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Player()
| Method Detail |
|---|
public int rollDice()
public int getTotal()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||