de.palmmedia.yahtzee.data
Class Player

java.lang.Object
  extended by de.palmmedia.yahtzee.data.Player

public class Player
extends Object

Represents a player.

Author:
Daniel

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

name

private String name
The name.


active

private boolean active
Determines whether the player is active.

Constructor Detail

Player

public Player(String name,
              boolean active)
Constructor.

Parameters:
name - The name.
active - The active state.
Method Detail

getName

public String getName()
Gets the name.

Returns:
The name.

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name.

isActive

public boolean isActive()
Determines whether the player is active.

Returns:
The active state.

setActive

public void setActive(boolean active)
Sets the active state.

Parameters:
active - The active state.