Atavism Version 2018.1AGIS API

atavism.agis.events
Class CooldownEvent

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

public class CooldownEvent
extends Event


Nested Class Summary
 class CooldownEvent.Entry
           
 
Field Summary
protected  java.util.Set<CooldownEvent.Entry> cooldowns
           
protected  OID objOid
           
 
Constructor Summary
CooldownEvent()
           
CooldownEvent(AgisObject obj)
           
CooldownEvent(AOByteBuffer buf, ClientConnection con)
           
CooldownEvent(Cooldown.State state)
           
 
Method Summary
 void addCooldown(Cooldown.State state)
           
 void addCooldown(java.lang.String id, long duration, long endTime)
           
 java.util.Set<CooldownEvent.Entry> getCooldowns()
           
 java.lang.String getName()
           
 OID getObjOid()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setCooldowns(java.util.Set<CooldownEvent.Entry> cooldowns)
           
 void setObjOid(OID oid)
           
 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
 

Field Detail

objOid

protected OID objOid

cooldowns

protected java.util.Set<CooldownEvent.Entry> cooldowns
Constructor Detail

CooldownEvent

public CooldownEvent()

CooldownEvent

public CooldownEvent(AOByteBuffer buf,
                     ClientConnection con)

CooldownEvent

public CooldownEvent(AgisObject obj)

CooldownEvent

public CooldownEvent(Cooldown.State state)
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

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()


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