Atavism Version 2018.1AGIS API

atavism.agis.events
Class StatusUpdateEvent

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

public class StatusUpdateEvent
extends AgisEvent

we actually copy the attributes into the event (instead of just storing the obj ref) because when the event goes over the wire, the other server/client wont have the correct values unless its part of the event


Constructor Summary
StatusUpdateEvent()
           
StatusUpdateEvent(AgisObject obj)
           
StatusUpdateEvent(AOByteBuffer buf, ClientConnection con)
           
 
Method Summary
 int getBody()
           
 int getCurrentBody()
           
 int getCurrentEndurance()
           
 int getCurrentStun()
           
 int getEndurance()
           
 java.lang.String getName()
           
 int getPD()
           
 int getStun()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setBody(int body)
           
 void setCurrentBody(int body)
           
 void setCurrentEndurance(int end)
           
 void setCurrentStun(int stun)
           
 void setEndurance(int end)
           
 void setPD(int pd)
           
 void setStun(int stun)
           
 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

StatusUpdateEvent

public StatusUpdateEvent()

StatusUpdateEvent

public StatusUpdateEvent(AOByteBuffer buf,
                         ClientConnection con)

StatusUpdateEvent

public StatusUpdateEvent(AgisObject obj)
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

setStun

public void setStun(int stun)

getStun

public int getStun()

setCurrentStun

public void setCurrentStun(int stun)

getCurrentStun

public int getCurrentStun()

setBody

public void setBody(int body)

getBody

public int getBody()

setCurrentBody

public void setCurrentBody(int body)

getCurrentBody

public int getCurrentBody()

setEndurance

public void setEndurance(int end)

getEndurance

public int getEndurance()

setCurrentEndurance

public void setCurrentEndurance(int end)

getCurrentEndurance

public int getCurrentEndurance()

setPD

public void setPD(int pd)

getPD

public int getPD()


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