de.palmmedia.yahtzee.game
Class LowerSection
java.lang.Object
de.palmmedia.yahtzee.game.Section
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LowerSection
public LowerSection(Resources resources)
- Constructor
- Parameters:
resources
- The resources.
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.