|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.interfaces.ScriptingEngine.ScriptableResponse
public static class ScriptingEngine.ScriptableResponse
An object that holds the information about an event until it is time to execute its associated script.
| Field Summary | |
|---|---|
PhysicalAgent |
h
(host) the object being scripted |
MOB |
m
(host mob) a mob representation of the host (h) |
java.lang.String |
message
a string associated with this event |
Item |
pi
(primary item) an item associated with this event |
MOB |
s
(source) the source of the event |
DVector |
scr
(script) the actual script to execute for this event |
Item |
si
(second item) a second item associated with this event |
Environmental |
t
(target) the target of the event |
| Constructor Summary | |
|---|---|
ScriptingEngine.ScriptableResponse(PhysicalAgent host,
MOB source,
Environmental target,
MOB monster,
Item primaryItem,
Item secondaryItem,
DVector script,
int ticks,
java.lang.String msg)
Create an event response object |
|
| Method Summary | |
|---|---|
boolean |
checkTimeToExecute()
Decrements the internal tick counter and returns true if the tick counter has dropped to or below 0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PhysicalAgent h
public MOB s
public Environmental t
public MOB m
public Item pi
public Item si
public DVector scr
public java.lang.String message
| Constructor Detail |
|---|
public ScriptingEngine.ScriptableResponse(PhysicalAgent host,
MOB source,
Environmental target,
MOB monster,
Item primaryItem,
Item secondaryItem,
DVector script,
int ticks,
java.lang.String msg)
host - the object being scriptedsource - the source of the eventtarget - the target of the eventmonster - a mob representation of the hostprimaryItem - an item associated with this eventsecondaryItem - a second item associated with this eventscript - the actual script to execute for this eventticks - how many ticks to wait before executing the scriptmsg - a string associated with this event| Method Detail |
|---|
public boolean checkTimeToExecute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||