Atavism Version 2018.1AGIS API

atavism.server.events
Class NotifyPlayAnimationEvent

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

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


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

Constructor Detail

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent()

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent(OID oid)

NotifyPlayAnimationEvent

public NotifyPlayAnimationEvent(AOByteBuffer buf,
                                ClientConnection con)

NotifyPlayAnimationEvent

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

Method Detail

getName

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

toString

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

addAnim

public void addAnim(AnimationCommand ac)

setAnimList

public void setAnimList(java.util.List<AnimationCommand> animList)

getAnimList

public java.util.List getAnimList()


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