megamek.common
Class MMShuffle

java.lang.Object
  extended by megamek.common.Roll
      extended by megamek.common.MMShuffle

public class MMShuffle
extends Roll

Subclass of the roll tracker for Pool36Random "entropy" sources

Author:
Suvarov454

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

MMShuffle

public MMShuffle(int first,
                 int second)
Create a new "roll" for this shuffle.

Parameters:
shuffleId - - the long id for this shuffle.
first - - the first int "roll"
second - - the second int "roll"
Method Detail

setDeal

public void setDeal(int delt)
Record when this "roll" is delt.

Parameters:
delt - - the int order 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:
getIntValue in class Roll
Returns:
the int value of the roll.

toString

public java.lang.String toString()
Get a String containing the roll for each of the virtual dice.

Specified by:
toString in class Roll
Returns:
the String value of the roll.

getReport

public java.lang.String getReport()
Get a String report that can be parsed to analyse the roll.

Specified by:
getReport in class Roll
Returns:
the String details of the roll.

main

public static void main(java.lang.String[] args)
Test harness for this class.