|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.Roll
public abstract class Roll
Encapsulate all information known about a requested roll. This information can be logged for full statistical analysis and auditing, so hopefully people will finally stop questioning whether the RNG is any good.
| Field Summary | |
|---|---|
protected int |
faces
The number of faces on each virtual die. |
protected long |
id
The unique identifier for this roll. |
protected int |
min
The lowest value on each virtual die. |
| Constructor Summary | |
|---|---|
protected |
Roll(int count,
int start)
Store the configuration information for this roll. |
| Method Summary | |
|---|---|
abstract int |
getIntValue()
Get the value of the roll. |
abstract java.lang.String |
getReport()
Get a String report that can be parsed to analyse the
roll. |
protected static void |
output(Roll roll)
Formats Roll output for test harnesses. |
abstract java.lang.String |
toString()
Get a String containing the roll for each of the virtual
dice. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final long id
protected final int faces
protected final int min
| Constructor Detail |
|---|
protected Roll(int count,
int start)
count - - the int number of results possible on each
virtual die.start - - the int value that is the start of the
value set of each virtual die.| Method Detail |
|---|
public abstract int getIntValue()
int value of the roll.public abstract java.lang.String toString()
String containing the roll for each of the virtual
dice.
toString in class java.lang.ObjectString value of the roll.public abstract java.lang.String getReport()
String report that can be parsed to analyse the
roll.
String details of the roll.protected static void output(Roll roll)
Roll output for test harnesses.
roll - - the Roll to be reported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||