de.palmmedia.yahtzee.game
Class Player

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

public class Player
extends Object

Represents a player.

Author:
Daniel Palme

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

name

private String name
The name.


lowerSection

private Section lowerSection
The LowerSection.


upperSection

private Section upperSection
The UpperSection.

Constructor Detail

Player

public Player(String name,
              Resources resources)
Constructor.

Parameters:
name - The name.
resources - The resources.
Method Detail

getName

public String getName()
Gets the name.

Returns:
The name.

getLowerSection

public Section getLowerSection()
Gets the LowerSection.

Returns:
The LowerSection.

getUpperSection

public Section getUpperSection()
Gets the UpperSection.

Returns:
The UpperSection.

getResult

public int getResult()
Get the current sum of the player.

Returns:
The current sum of the player.