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.RandomAccesspublic 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, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, trimToSizepublic 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.GeasStepsgetBotheredMobs in interface SlaveryLibrary.GeasStepspublic MOB stepperM()
SlaveryLibrary.GeasStepsstepperM in interface SlaveryLibrary.GeasStepspublic boolean isDone()
SlaveryLibrary.GeasStepsisDone in interface SlaveryLibrary.GeasStepspublic void step()
SlaveryLibrary.GeasStepsstep in interface SlaveryLibrary.GeasStepspublic void move(boolean wander)
SlaveryLibrary.GeasStepsmove in interface SlaveryLibrary.GeasStepswander - true to allow leaving an areapublic boolean sayResponse(MOB speakerM, MOB targetM, java.lang.String response)
SlaveryLibrary.GeasStepssayResponse in interface SlaveryLibrary.GeasStepsspeakerM - the speaker mobtargetM - the target mob, if anyresponse - the words spoken