org.starhope.appius.game.npc.plebeian
Class PlebeianScriptRunner.Random_Runner
java.lang.Object
org.starhope.appius.game.npc.plebeian.PlebeianScriptRunner.Random_Runner
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- PlebeianScriptRunner
public final class PlebeianScriptRunner.Random_Runner
- extends Object
- implements Runnable
Run something randomly from a set of possible outcomes
- Author:
- brpocock@star-hope.org
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
choices
private final LinkedList<PlebeianScript> choices
- WRITEME: Document this brpocock@star-hope.org
PlebeianScriptRunner.Random_Runner
public PlebeianScriptRunner.Random_Runner(List<PlebeianScript> options)
- WRITEME: Document this constructor brpocock@star-hope.org
- Parameters:
options
- a set of scripts, from which one outcome will
be chosen randomly at runtime
run
public void run()
- Specified by:
run
in interface Runnable
- See Also:
Runnable.run()