multiverse.server.events
Class JScriptEvent

java.lang.Object
  extended by multiverse.server.engine.Event
      extended by multiverse.server.events.JScriptEvent

public class JScriptEvent
extends Event

execute the passed in script


Field Summary
private  String script
           
 
Constructor Summary
JScriptEvent()
           
JScriptEvent(MVByteBuffer buf, ClientConnection con)
           
JScriptEvent(MVObject scripter, String script)
           
 
Method Summary
 String getName()
           
 String getScript()
           
protected  void parseBytes(MVByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setScript(String script)
           
 MVByteBuffer toBytes()
           
 
Methods inherited from class multiverse.server.engine.Event
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, setObjectOid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

script

private String script
Constructor Detail

JScriptEvent

public JScriptEvent()

JScriptEvent

public JScriptEvent(MVByteBuffer buf,
                    ClientConnection con)

JScriptEvent

public JScriptEvent(MVObject scripter,
                    String script)
Method Detail

getName

public String getName()
Specified by:
getName in class Event

toBytes

public MVByteBuffer toBytes()
Specified by:
toBytes in class Event

parseBytes

protected void parseBytes(MVByteBuffer buf)
Description copied from class: Event
load this event from the passed in buffer called by the constructor

Specified by:
parseBytes in class Event

getScript

public String getScript()

setScript

public void setScript(String script)