|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.adventure.actions.AbstractAction
de.rico.adventure.actions.custom.CallScriptedMethod
public class CallScriptedMethod
This class is a game action that can be used to queue the call of a scripted method into the game action scheduler.
Constructor Summary | |
---|---|
CallScriptedMethod(ScriptInterpreter interpreter,
java.lang.String methodName)
Creates a new game action to call a scripted method in a queued way. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
This method renders the game action, if needed. |
void |
finishUp()
Implementations of this method hold code that needs to be called before the game action can be removed from the queue (prematurely) without causing side effects. |
void |
update(long elapsedTime)
This method updates the game action |
Methods inherited from class de.rico.adventure.actions.AbstractAction |
---|
getEntity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallScriptedMethod(ScriptInterpreter interpreter, java.lang.String methodName)
interpreter
- script interpreter that can invoke the methodmethodName
- name of the method to invokeMethod Detail |
---|
public void update(long elapsedTime)
AbstractAction
update
in class AbstractAction
elapsedTime
- time between two framespublic void finishUp()
AbstractAction
finishUp
in class AbstractAction
public void draw(javax.media.opengl.GL gl)
AbstractAction
draw
in class AbstractAction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |