Atavism Version 2018.1AGIS API

atavism.agis.events
Class CombatEvent

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

public class CombatEvent
extends Event


Constructor Summary
CombatEvent()
           
CombatEvent(AgisMob attacker, AgisObject target, java.lang.String attackType)
           
CombatEvent(AOByteBuffer buf, ClientConnection con)
           
 
Method Summary
 AgisMob getAttacker()
           
 java.lang.String getAttackType()
           
 java.lang.String getName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setAttacker(AgisMob attacker)
           
 void setAttackType(java.lang.String attackType)
           
 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

CombatEvent

public CombatEvent()

CombatEvent

public CombatEvent(AOByteBuffer buf,
                   ClientConnection con)

CombatEvent

public CombatEvent(AgisMob attacker,
                   AgisObject target,
                   java.lang.String attackType)
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

setAttacker

public void setAttacker(AgisMob attacker)

getAttacker

public AgisMob getAttacker()

setAttackType

public void setAttackType(java.lang.String attackType)

getAttackType

public java.lang.String getAttackType()


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