multiverse.server.events
Class NotifyPlayAnimationEvent

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

public class NotifyPlayAnimationEvent
extends Event

object *IS* playing an animation - this event says other need to know about this obj's animation - we have the list as part of the event because this event may be serialized and the other server/client wont know what the list should be


Field Summary
private  List<AnimationCommand> animList
           
private  Lock lock
           
 
Constructor Summary
NotifyPlayAnimationEvent()
           
NotifyPlayAnimationEvent(Long oid)
           
NotifyPlayAnimationEvent(MVByteBuffer buf, ClientConnection con)
           
NotifyPlayAnimationEvent(MVObject object)
          the object is the object 'playing' the animation
 
Method Summary
 void addAnim(AnimationCommand ac)
           
 List getAnimList()
           
 String getName()
           
protected  void parseBytes(MVByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setAnimList(List<AnimationCommand> animList)
           
 MVByteBuffer toBytes()
           
 String toString()
           
 
Methods inherited from class multiverse.server.engine.Event
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, setObjectOid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

animList

private List<AnimationCommand> animList

lock

private transient Lock lock
Constructor Detail

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent()

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent(Long oid)

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent(MVByteBuffer buf,
                                ClientConnection con)

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent(MVObject object)
the object is the object 'playing' the animation

Method Detail

getName

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

toString

public String toString()
Overrides:
toString 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

addAnim

public void addAnim(AnimationCommand ac)

setAnimList

public void setAnimList(List<AnimationCommand> animList)

getAnimList

public List getAnimList()