de.palmmedia.yahtzee.game.elements
Class Yahtzee
java.lang.Object
de.palmmedia.yahtzee.game.elements.Element
de.palmmedia.yahtzee.game.elements.OneKind
de.palmmedia.yahtzee.game.elements.Yahtzee
public class Yahtzee
- extends OneKind
Element where all dices are equal.
- 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 |
Yahtzee
public Yahtzee(String name)
- Constructor.
- Parameters:
name
- The name.
calculateResult
protected int calculateResult(Dice[] dices)
- Calculates the result of the given dices.
- Overrides:
calculateResult
in class OneKind
- Parameters:
dices
- The dices.
- Returns:
- The result.