de.palmmedia.yahtzee.game
Class UpperSection

java.lang.Object
  extended by de.palmmedia.yahtzee.game.Section
      extended by de.palmmedia.yahtzee.game.UpperSection

public class UpperSection
extends Section

The upper section of the game. This section has no bonus.

Author:
Daniel Palme

Constructor Summary
UpperSection(Resources resources)
          Constructor.
 
Method Summary
 int getBonus()
          Gets the bonus of the section.
 boolean hasBonus()
          Determines whether the section has a bonus.
 
Methods inherited from class de.palmmedia.yahtzee.game.Section
add, getElements, getResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpperSection

public UpperSection(Resources resources)
Constructor.

Parameters:
resources - The resources.
Method Detail

getBonus

public int getBonus()
Gets the bonus of the section.

Specified by:
getBonus in class Section
Returns:
The bonus.

hasBonus

public boolean hasBonus()
Determines whether the section has a bonus.

Specified by:
hasBonus in class Section
Returns:
The bonus state.