de.palmmedia.yahtzee.game.elements
Class LargeStraight
java.lang.Object
de.palmmedia.yahtzee.game.elements.Element
de.palmmedia.yahtzee.game.elements.Straight
de.palmmedia.yahtzee.game.elements.LargeStraight
public class LargeStraight
- extends Straight
Straight
with 5 dices in a row.
- Author:
- Daniel Palme
Method Summary |
protected int |
calculateResult(Dice[] dices)
Calculates the result of the given dices. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LargeStraight
public LargeStraight(String name)
- Constructor.
- Parameters:
name
- The name.
calculateResult
protected int calculateResult(Dice[] dices)
- Calculates the result of the given dices.
- Specified by:
calculateResult
in class Element
- Parameters:
dices
- The dices.
- Returns:
- The result.