|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.palmmedia.yahtzee.data.Player
public class Player
Represents a player.
Field Summary | |
---|---|
private boolean |
active
Determines whether the player is active. |
private String |
name
The name. |
Constructor Summary | |
---|---|
Player(String name,
boolean active)
Constructor. |
Method Summary | |
---|---|
String |
getName()
Gets the name. |
boolean |
isActive()
Determines whether the player is active. |
void |
setActive(boolean active)
Sets the active state. |
void |
setName(String name)
Sets the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String name
private boolean active
Constructor Detail |
---|
public Player(String name, boolean active)
name
- The name.active
- The active state.Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name.public boolean isActive()
public void setActive(boolean active)
active
- The active state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |