Atavism Version 2018.1AGIS API

atavism.agis.events
Class AbilityProgressEvent

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

public class AbilityProgressEvent
extends Event


Field Summary
protected  int abilityID
           
protected  long duration
           
protected  long endTime
           
protected  OID objOid
           
protected  java.lang.String state
           
 
Constructor Summary
AbilityProgressEvent()
           
AbilityProgressEvent(AgisAbilityState state)
           
AbilityProgressEvent(AOByteBuffer buf, ClientConnection con)
           
 
Method Summary
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()
           
 
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

abilityID

protected int abilityID

state

protected java.lang.String state

duration

protected long duration

endTime

protected long endTime
Constructor Detail

AbilityProgressEvent

public AbilityProgressEvent()

AbilityProgressEvent

public AbilityProgressEvent(AOByteBuffer buf,
                            ClientConnection con)

AbilityProgressEvent

public AbilityProgressEvent(AgisAbilityState state)
Method Detail

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)


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