|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.palmmedia.yahtzee.game.Player
public class Player
Represents a player.
Field Summary | |
---|---|
private Section |
lowerSection
The LowerSection . |
private String |
name
The name. |
private Section |
upperSection
The UpperSection . |
Constructor Summary | |
---|---|
Player(String name,
Resources resources)
Constructor. |
Method Summary | |
---|---|
Section |
getLowerSection()
Gets the LowerSection . |
String |
getName()
Gets the name. |
int |
getResult()
Get the current sum of the player. |
Section |
getUpperSection()
Gets the UpperSection . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String name
private Section lowerSection
LowerSection
.
private Section upperSection
UpperSection
.
Constructor Detail |
---|
public Player(String name, Resources resources)
name
- The name.resources
- The resources.Method Detail |
---|
public String getName()
public Section getLowerSection()
LowerSection
.
LowerSection
.public Section getUpperSection()
UpperSection
.
UpperSection
.public int getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |