Atavism Version 2018.1AGIS API

atavism.server.events
Class ScriptEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by atavism.server.events.ScriptEvent
All Implemented Interfaces:
EventParser

public class ScriptEvent
extends Event

send the target object/mob an event so that it can do something


Constructor Summary
ScriptEvent()
           
ScriptEvent(AOByteBuffer buf, ClientConnection con)
           
ScriptEvent(AOObject target)
           
 
Method Summary
 java.lang.Object getData()
           
 java.lang.String getName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setData(java.lang.Object o)
           
 AOByteBuffer toBytes()
           
 
Methods inherited from class atavism.server.engine.Event
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptEvent

public ScriptEvent()

ScriptEvent

public ScriptEvent(AOByteBuffer buf,
                   ClientConnection con)

ScriptEvent

public ScriptEvent(AOObject target)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Event

toBytes

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

parseBytes

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

Specified by:
parseBytes in interface EventParser
Specified by:
parseBytes in class Event

getData

public java.lang.Object getData()

setData

public void setData(java.lang.Object o)


Copyright © 2018 Dragonsan Studios Sp. z o.o.