atavism.agis.events
Class StatusUpdateEvent
java.lang.Object
atavism.server.engine.Event
atavism.agis.events.AgisEvent
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
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 |
StatusUpdateEvent
public StatusUpdateEvent()
StatusUpdateEvent
public StatusUpdateEvent(AOByteBuffer buf,
ClientConnection con)
StatusUpdateEvent
public StatusUpdateEvent(AgisObject obj)
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()