de.palmmedia.yahtzee.game
Class UpperSection
java.lang.Object
de.palmmedia.yahtzee.game.Section
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpperSection
public UpperSection(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.