multiverse.server.events
Class NotifyPlayAnimationEvent
java.lang.Object
multiverse.server.engine.Event
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
| Methods inherited from class multiverse.server.engine.Event |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, setObjectOid |
animList
private List<AnimationCommand> animList
lock
private transient Lock lock
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
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()