java.util.Collection<SlaveryLibrary.GeasStep>
, java.lang.Iterable<SlaveryLibrary.GeasStep>
, java.util.List<SlaveryLibrary.GeasStep>
SlaveryParser.GeasStepsImpl
public static interface SlaveryLibrary.GeasSteps extends java.util.List<SlaveryLibrary.GeasStep>
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<MOB> |
getBotheredMobs() |
Returns the set of mobs that these steps have bothered
with questions, in order to prevent repeats.
|
boolean |
isDone() |
Returns true only when the slave has completed every step
in their process and these steps can be deleted.
|
void |
move(boolean wander) |
For internal use, mostly, this will cause the mob to
change rooms is possible.
|
boolean |
sayResponse(MOB speakerM,
MOB targetM,
java.lang.String response) |
When the slave hears someone speak in the same room as
them, it might be to answer a question.
|
void |
step() |
The main ticking method, which will cause the slave/mob
to take an action towards the completion of the geas
task.
|
MOB |
stepperM() |
Returns this geas steps slave mob.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
void step()
void move(boolean wander)
wander
- true to allow leaving an areaboolean sayResponse(MOB speakerM, MOB targetM, java.lang.String response)
speakerM
- the speaker mobtargetM
- the target mob, if anyresponse
- the words spokenMOB stepperM()
java.util.Set<MOB> getBotheredMobs()
boolean isDone()