atavism.agis.events
Class CooldownEvent
java.lang.Object
atavism.server.engine.Event
atavism.agis.events.CooldownEvent
- All Implemented Interfaces:
- EventParser
public class CooldownEvent
- 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
cooldowns
protected java.util.Set<CooldownEvent.Entry> cooldowns
CooldownEvent
public CooldownEvent()
CooldownEvent
public CooldownEvent(AOByteBuffer buf,
ClientConnection con)
CooldownEvent
public CooldownEvent(AgisObject obj)
CooldownEvent
public CooldownEvent(Cooldown.State 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)
addCooldown
public void addCooldown(java.lang.String id,
long duration,
long endTime)
addCooldown
public void addCooldown(Cooldown.State state)
setCooldowns
public void setCooldowns(java.util.Set<CooldownEvent.Entry> cooldowns)
getCooldowns
public java.util.Set<CooldownEvent.Entry> getCooldowns()