de.palmmedia.yahtzee.game
Class LowerSection

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

public class LowerSection
extends Section

The lower section of the game. This section has a bonus if its sum is greater than 62.

Author:
Daniel Palme

Constructor Summary
LowerSection(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

LowerSection

public LowerSection(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.