SlaveryLibrary.GeasSteppublic static class SlaveryParser.GeasStepImpl extends java.lang.Object implements SlaveryLibrary.GeasStep
| Modifier and Type | Field | Description | 
|---|---|---|
| MOB | bothering | |
| java.util.List<java.util.List<java.lang.String>> | que | |
| SlaveryLibrary.GeasSteps | steps | |
| int | subStepNum | |
| MOB | targetM | 
| Constructor | Description | 
|---|---|
| GeasStepImpl(SlaveryLibrary.GeasSteps gs) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | botherIfAble(java.lang.String msgOrQ) | Given a message or question, this will cause the slave to
 speak it to someone in the room, thus bothering them. | 
| MOB | getBotheredMob() | When an individual step action 'bothers' a mob with questions
 or other actions, this method allows that chosen mob to be
 tracked over to to judge the response. | 
| 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 | setSubStep(int subStepNum) | Sometimes an individual action inside a step requires multiple
 ticks to accomplish. | 
| java.lang.String | step() | The main ticking method, which will cause the slave/mob
 to take an action towards the completion of the geas
 step. | 
public java.util.List<java.util.List<java.lang.String>> que
public int subStepNum
public MOB bothering
public SlaveryLibrary.GeasSteps steps
public MOB targetM
public GeasStepImpl(SlaveryLibrary.GeasSteps gs)
public MOB getBotheredMob()
SlaveryLibrary.GeasStepgetBotheredMob in interface SlaveryLibrary.GeasSteppublic boolean botherIfAble(java.lang.String msgOrQ)
SlaveryLibrary.GeasStepbotherIfAble in interface SlaveryLibrary.GeasStepmsgOrQ - the message to speak.public void setSubStep(int subStepNum)
SlaveryLibrary.GeasStepsetSubStep in interface SlaveryLibrary.GeasStepsubStepNum - the sub step ordinalpublic boolean sayResponse(MOB speakerM, MOB targetM, java.lang.String response)
SlaveryLibrary.GeasStepsayResponse in interface SlaveryLibrary.GeasStepspeakerM - the speaker mobtargetM - the target mob, if anyresponse - the words spokenpublic java.lang.String step()
SlaveryLibrary.GeasStepstep in interface SlaveryLibrary.GeasStep