Atavism Version 2018.1AGIS API

atavism.server.events
Class AutoAttackEvent

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

public class AutoAttackEvent
extends Event


Constructor Summary
AutoAttackEvent()
           
AutoAttackEvent(AOByteBuffer buf, ClientConnection con)
           
AutoAttackEvent(AOObject attacker, AOObject target, java.lang.String attackType, boolean attackStatus)
           
 
Method Summary
 OID getAttackerOid()
           
 boolean getAttackStatus()
           
 java.lang.String getAttackType()
           
 java.lang.String getName()
           
 OID getTargetOid()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setAttackerOid(OID id)
           
 void setAttackStatus(boolean s)
           
 void setAttackType(java.lang.String s)
           
 void setTargetOid(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
 

Constructor Detail

AutoAttackEvent

public AutoAttackEvent()

AutoAttackEvent

public AutoAttackEvent(AOByteBuffer buf,
                       ClientConnection con)

AutoAttackEvent

public AutoAttackEvent(AOObject attacker,
                       AOObject target,
                       java.lang.String attackType,
                       boolean attackStatus)
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

setAttackerOid

public void setAttackerOid(OID id)

getAttackerOid

public OID getAttackerOid()

setTargetOid

public void setTargetOid(OID oid)

getTargetOid

public OID getTargetOid()

setAttackType

public void setAttackType(java.lang.String s)

getAttackType

public java.lang.String getAttackType()

setAttackStatus

public void setAttackStatus(boolean s)

getAttackStatus

public boolean getAttackStatus()


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