Class Player

java.lang.Object
  extended by Player

public class Player
extends java.lang.Object

Class Player Represents a player in the game

Version:
1.0

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

Player

public Player(java.lang.String name)
Constructor for objects of class Player

Method Detail

getName

public java.lang.String getName()
returns the name of this player


setName

public void setName(java.lang.String name)
set a new name for this player


takeTurn

public void takeTurn()
the player takes a turn in the game