public class AbilityProgressEvent extends Event
Modifier and Type | Field and Description |
---|---|
protected int |
abilityID |
protected long |
duration |
protected long |
endTime |
protected OID |
objOid |
protected java.lang.String |
state |
Constructor and Description |
---|
AbilityProgressEvent() |
AbilityProgressEvent(AgisAbilityState state) |
AbilityProgressEvent(AOByteBuffer buf,
ClientConnection con) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateEndTime(AgisAbilityState state) |
int |
getAbilityID() |
long |
getDuration() |
long |
getEndTime() |
java.lang.String |
getName() |
OID |
getObjOid() |
java.lang.String |
getState() |
void |
parseBytes(AOByteBuffer buf)
load this event from the passed in buffer
called by the constructor
|
void |
setAbilityID(int id) |
void |
setDuration(long duration) |
void |
setEndTime(long time) |
void |
setObjOid(OID oid) |
void |
setState(java.lang.String state) |
AOByteBuffer |
toBytes() |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString
protected OID objOid
protected int abilityID
protected java.lang.String state
protected long duration
protected long endTime
public AbilityProgressEvent()
public AbilityProgressEvent(AOByteBuffer buf, ClientConnection con)
public AbilityProgressEvent(AgisAbilityState state)
protected long calculateEndTime(AgisAbilityState state)
public AOByteBuffer toBytes()
public void parseBytes(AOByteBuffer buf)
Event
parseBytes
in interface EventParser
parseBytes
in class Event
public OID getObjOid()
public void setObjOid(OID oid)
public int getAbilityID()
public void setAbilityID(int id)
public java.lang.String getState()
public void setState(java.lang.String state)
public long getDuration()
public void setDuration(long duration)
public long getEndTime()
public void setEndTime(long time)