SlaveryLibrary.GeasStep
public 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.GeasStep
getBotheredMob
in interface SlaveryLibrary.GeasStep
public boolean botherIfAble(java.lang.String msgOrQ)
SlaveryLibrary.GeasStep
botherIfAble
in interface SlaveryLibrary.GeasStep
msgOrQ
- the message to speak.public void setSubStep(int subStepNum)
SlaveryLibrary.GeasStep
setSubStep
in interface SlaveryLibrary.GeasStep
subStepNum
- the sub step ordinalpublic boolean sayResponse(MOB speakerM, MOB targetM, java.lang.String response)
SlaveryLibrary.GeasStep
sayResponse
in interface SlaveryLibrary.GeasStep
speakerM
- the speaker mobtargetM
- the target mob, if anyresponse
- the words spokenpublic java.lang.String step()
SlaveryLibrary.GeasStep
step
in interface SlaveryLibrary.GeasStep