|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomValueGenerator
| Field Summary | |
|---|---|
static java.lang.String |
DICE_MAPPING_CLASS
The setting (see setSetting below) that is potentially used in the generateRandomness call. |
static java.lang.String |
DIE_HANDLING_CLASS
|
| Fields inherited from interface net.sourceforge.rpgee.Describable |
|---|
CODE_FOOTER, CODE_HEADER |
| Method Summary | |
|---|---|
void |
addRandomValueHandler(RandomValueHandler handler)
Add A new RandomValueHandler to the list of handlers for this roller |
void |
generateRandomness()
Reset the "randomness" factor for a RandomValueGenerator. |
java.util.List<RandomValueHandler> |
getRandomValueHandlers()
|
RandomValueResultMapper |
getRandomValueResultMapper()
Returns the local result mapper |
java.lang.String |
getRandomValuesAsString(java.util.List<RandomValue> roll)
GameMapModel the dice rolls in roll with a mapper if available |
java.lang.Object |
getSetting(java.lang.String key)
Returns the internal map of settings used by the "roll" call |
java.lang.String[] |
getSettings()
Get a list of available settings |
GeneratedRandomValue |
produceGeneratedRandomValue(java.lang.String d)
Produces a DiceEvaluation |
void |
require(java.lang.Object requirement)
Submit some value that is required before a roll can continue. |
void |
setRandomnessFactor(java.lang.Object o)
|
void |
setRandomValueHandlers(java.util.List<RandomValueHandler> handlers)
Set the DieHandlers for this Roller. |
void |
setRandomValueResultMapper(RandomValueResultMapper mapper)
Set the code that maps values in die rolls to result strings. |
void |
setSetting(java.lang.String setting,
java.lang.Object value)
Sets a setting in the internal settings map to the given value. |
| Methods inherited from interface net.sourceforge.rpgee.Describable |
|---|
getDescription, getHTMLDescription |
| Field Detail |
|---|
static final java.lang.String DICE_MAPPING_CLASS
static final java.lang.String DIE_HANDLING_CLASS
| Method Detail |
|---|
java.lang.Object getSetting(java.lang.String key)
java.lang.String[] getSettings()
void setSetting(java.lang.String setting,
java.lang.Object value)
throws InvalidParameterException
setting - String name of the settingvalue - Object value to set the setting to
InvalidParameterException
GeneratedRandomValue produceGeneratedRandomValue(java.lang.String d)
throws RandomValueException
d -
RandomValueException
void generateRandomness()
throws RandomValueException
RandomValueExceptionvoid setRandomValueResultMapper(RandomValueResultMapper mapper)
mapper - The RandomValueResultMapper to map to, or null to use the basic RandomValue's output
java.lang.String getRandomValuesAsString(java.util.List<RandomValue> roll)
throws RandomValueException
GeneratedRandomValue -
MappingException
RandomValueExceptionRandomValueResultMapper getRandomValueResultMapper()
java.util.List<RandomValueHandler> getRandomValueHandlers()
void setRandomValueHandlers(java.util.List<RandomValueHandler> handlers)
handler - The RandomValueHandler to use for this randmizervoid addRandomValueHandler(RandomValueHandler handler)
handler - RandomValueHandler to add
void require(java.lang.Object requirement)
throws RandomValueException
requirement - Some object passed to this function to determine a randomness factor
RandomValueExceptionvoid setRandomnessFactor(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||