|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCombination
public class Combination
Constructor Summary | |
---|---|
Combination(int die1,
int die2,
int die3)
Constructs a new Combination from the given dice values. |
Method Summary | |
---|---|
int |
calculateScore()
Calculates the score for this roll. |
boolean |
isScoring()
Returns true if this roll represents a scoring combination as detailed in the rules. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Combination(int die1, int die2, int die3)
die1
- the first die valuedie2
- the second die valuedie3
- the third die valueMethod Detail |
---|
public boolean isScoring()
public int calculateScore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |