Package megamek.common
Class MMShuffle
java.lang.Object
megamek.common.rolls.Roll
megamek.common.MMShuffle
- All Implemented Interfaces:
Serializable
Subclass of the roll tracker for
Pool36Random "entropy" sources- Since:
- July 21, 2004, 7:49 AM
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the value of the roll.int[]Get the individual value of each virtual die.Get aStringreport that can be parsed to analyse the roll.static voidTest harness for this class.voidsetDeal(int dealt) Record when this "roll" is dealt.toString()Get aStringcontaining the roll for each of the virtual dice.Methods inherited from class megamek.common.rolls.Roll
getMarginOfSuccess, isSimpleFailure, isTargetRollSuccess, isTargetRollSuccess, isTargetRollSuccess2isFailure, isTargetRollSuccess2isFailure, output
-
Constructor Details
-
MMShuffle
public MMShuffle(int first, int second) Create a new "roll" for this shuffle.- Parameters:
first- - the firstint"roll"second- - the secondint"roll"
-
-
Method Details
-
setDeal
public void setDeal(int dealt) Record when this "roll" is dealt.- Parameters:
dealt- - theintorder of this "roll" in its shuffle
-
getIntValue
public int getIntValue()Get the value of the roll. This is the total of each of the rolls of each virtual die.- Specified by:
getIntValuein classRoll- Returns:
- the
intvalue of the roll.
-
getIntValues
public int[] getIntValues()Get the individual value of each virtual die.- Specified by:
getIntValuesin classRoll- Returns:
- the
intvalues of the roll.
-
toString
Get aStringcontaining the roll for each of the virtual dice. -
getReport
Get aStringreport that can be parsed to analyse the roll. -
main
Test harness for this class.
-