atavism.agis.events
Class AbilityProgressEvent
java.lang.Object
atavism.server.engine.Event
atavism.agis.events.AbilityProgressEvent
- All Implemented Interfaces:
- EventParser
public class AbilityProgressEvent
- extends 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 |
objOid
protected OID objOid
abilityID
protected int abilityID
state
protected java.lang.String state
duration
protected long duration
endTime
protected long endTime
AbilityProgressEvent
public AbilityProgressEvent()
AbilityProgressEvent
public AbilityProgressEvent(AOByteBuffer buf,
ClientConnection con)
AbilityProgressEvent
public AbilityProgressEvent(AgisAbilityState state)
calculateEndTime
protected long calculateEndTime(AgisAbilityState state)
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
getObjOid
public OID getObjOid()
setObjOid
public void setObjOid(OID oid)
getAbilityID
public int getAbilityID()
setAbilityID
public void setAbilityID(int id)
getState
public java.lang.String getState()
setState
public void setState(java.lang.String state)
getDuration
public long getDuration()
setDuration
public void setDuration(long duration)
getEndTime
public long getEndTime()
setEndTime
public void setEndTime(long time)