|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.Roll
megamek.common.MMShuffle
public class MMShuffle
Subclass of the roll tracker for Pool36Random "entropy"
sources
| Field Summary |
|---|
| Fields inherited from class megamek.common.Roll |
|---|
faces, id, min |
| Constructor Summary | |
|---|---|
MMShuffle(int first,
int second)
Create a new "roll" for this shuffle. |
|
| Method Summary | |
|---|---|
int |
getIntValue()
Get the value of the roll. |
java.lang.String |
getReport()
Get a String report that can be parsed to analyse the
roll. |
static void |
main(java.lang.String[] args)
Test harness for this class. |
void |
setDeal(int delt)
Record when this "roll" is delt. |
java.lang.String |
toString()
Get a String containing the roll for each of the virtual
dice. |
| Methods inherited from class megamek.common.Roll |
|---|
output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MMShuffle(int first,
int second)
shuffleId - - the long id for this shuffle.first - - the first int "roll"second - - the second int "roll"| Method Detail |
|---|
public void setDeal(int delt)
delt - - the int order of this "roll" in its shufflepublic int getIntValue()
getIntValue in class Rollint value of the roll.public java.lang.String toString()
String containing the roll for each of the virtual
dice.
toString in class RollString value of the roll.public java.lang.String getReport()
String report that can be parsed to analyse the
roll.
getReport in class RollString details of the roll.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||