java.lang.ObjectPlayer
public class Player
Class Player Represents a player in the game
| Constructor Summary | |
|---|---|
Player(java.lang.String name)
Constructor for objects of class Player |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
returns the name of this player |
void |
setName(java.lang.String name)
set a new name for this player |
void |
takeTurn()
the player takes a turn in the game |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Player(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public void takeTurn()