multiverse.server.engine
Class Event

java.lang.Object
  extended by multiverse.server.engine.Event
Direct Known Subclasses:
AbilityActivateEvent, AbilityInfoEvent, AbilityProgressEvent, AbilityUpdateEvent, AcquireEvent, AcquireResponseEvent, ActivateItemEvent, AmbientLightEvent, AttachEvent, AuthorizedLoginEvent, AuthorizedLoginResponseEvent, AutoAttackEvent, ClientParameterEvent, CombatEvent, ComEvent, CommandEvent, ConcludeQuest, ConResetEvent, CooldownEvent, DetachEvent, DirectedEvent, DirLocOrientEvent, DropEvent, DropResponseEvent, EquipEvent, ExtensionMessageEvent, FragmentedMessage, FreeTerrainDecalEvent, JScriptEvent, LoadingStateEvent, LoginEvent, LoginResponseEvent, LogoutEvent, LogoutResponseEvent, MarsDamageEvent, MarsEquipResponseEvent, MarsEvent, MarsUnequipEvent, MarsUnequipResponseEvent, ModelInfoEvent, MultiEvent, NewLightEvent, NewObjectEvent, NewQuestStateEvent, NewTerrainDecalEvent, NotifyFreeObjectEvent, NotifyNewObjectEvent, NotifyPlayAnimationEvent, PortalEvent, QuestAvailableEvent, QuestInfo, QuestLogInfo, QuestResponse, QuestStateInfo, RegionConfiguration, RegisterEntityEvent, RegisterEntityResponseEvent, RemoveQuestResponse, RequestQuestInfo, RoadEvent, SaveEvent, ScriptEvent, SkyboxEvent, StateEvent, TerrainEvent, TimerEvent, UITheme, UnregisterEntityEvent, UnregisterEntityResponseEvent

public abstract class Event
extends Object


Field Summary
private  MVByteBuffer buffer
           
private  ClientConnection con
           
private  long enqueueTime
           
private  Long eventObjOid
           
 
Constructor Summary
Event()
           
Event(Entity obj)
           
Event(Long oid)
           
Event(MVByteBuffer buf, ClientConnection con)
           
 
Method Summary
 MVByteBuffer getBuffer()
          you should rewind this before using it
 ClientConnection getConnection()
           
 long getEnqueueTime()
           
abstract  String getName()
           
 Long getObjectOid()
           
protected abstract  void parseBytes(MVByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setBuffer(MVByteBuffer buf)
           
 void setConnection(ClientConnection con)
           
 void setEnqueueTime(long time)
           
 void setEntity(Entity obj)
           
 void setObject(MVObject obj)
           
 void setObjectOid(long objOid)
           
 void setObjectOid(Long objOid)
           
abstract  MVByteBuffer toBytes()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eventObjOid

private Long eventObjOid

con

private ClientConnection con

buffer

private MVByteBuffer buffer

enqueueTime

private long enqueueTime
Constructor Detail

Event

public Event()

Event

public Event(MVByteBuffer buf,
             ClientConnection con)

Event

public Event(Entity obj)

Event

public Event(Long oid)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public abstract String getName()

toBytes

public abstract MVByteBuffer toBytes()

parseBytes

protected abstract void parseBytes(MVByteBuffer buf)
load this event from the passed in buffer called by the constructor


setEntity

public void setEntity(Entity obj)

setObject

public void setObject(MVObject obj)

setObjectOid

public void setObjectOid(Long objOid)

setObjectOid

public void setObjectOid(long objOid)

getObjectOid

public Long getObjectOid()

setConnection

public void setConnection(ClientConnection con)

getConnection

public ClientConnection getConnection()

setBuffer

public void setBuffer(MVByteBuffer buf)

setEnqueueTime

public void setEnqueueTime(long time)

getEnqueueTime

public long getEnqueueTime()

getBuffer

public MVByteBuffer getBuffer()
you should rewind this before using it