SlaveryLibrary.GeasSteps
, java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<SlaveryLibrary.GeasStep>
, java.util.Collection<SlaveryLibrary.GeasStep>
, java.util.List<SlaveryLibrary.GeasStep>
, java.util.RandomAccess
public static class SlaveryParser.GeasStepsImpl extends java.util.Vector<SlaveryLibrary.GeasStep> implements SlaveryLibrary.GeasSteps
Modifier and Type | Field | Description |
---|---|---|
java.util.Set<MOB> |
botheredMOBs |
|
java.util.Set<Room> |
botheredPlaces |
|
java.util.List<Room> |
curTrail |
|
boolean |
done |
|
int |
gridSize |
|
java.util.Set<Room> |
searchGrid |
|
static long |
serialVersionUID |
|
MOB |
slaveM |
|
Room |
startR |
Constructor | Description |
---|---|
GeasStepsImpl(MOB masterM,
MOB slaveM) |
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
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public static final long serialVersionUID
public java.util.List<Room> curTrail
public java.util.Set<Room> searchGrid
public int gridSize
public Room startR
public java.util.Set<Room> botheredPlaces
public java.util.Set<MOB> botheredMOBs
public boolean done
public MOB slaveM
public java.util.Set<MOB> getBotheredMobs()
SlaveryLibrary.GeasSteps
getBotheredMobs
in interface SlaveryLibrary.GeasSteps
public MOB stepperM()
SlaveryLibrary.GeasSteps
stepperM
in interface SlaveryLibrary.GeasSteps
public boolean isDone()
SlaveryLibrary.GeasSteps
isDone
in interface SlaveryLibrary.GeasSteps
public void step()
SlaveryLibrary.GeasSteps
step
in interface SlaveryLibrary.GeasSteps
public void move(boolean wander)
SlaveryLibrary.GeasSteps
move
in interface SlaveryLibrary.GeasSteps
wander
- true to allow leaving an areapublic boolean sayResponse(MOB speakerM, MOB targetM, java.lang.String response)
SlaveryLibrary.GeasSteps
sayResponse
in interface SlaveryLibrary.GeasSteps
speakerM
- the speaker mobtargetM
- the target mob, if anyresponse
- the words spoken