public class AutoAttackEvent extends Event
Constructor and Description |
---|
AutoAttackEvent() |
AutoAttackEvent(AOByteBuffer buf,
ClientConnection con) |
AutoAttackEvent(AOObject attacker,
AOObject target,
java.lang.String attackType,
boolean attackStatus) |
Modifier and Type | Method and Description |
---|---|
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() |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString
public AutoAttackEvent()
public AutoAttackEvent(AOByteBuffer buf, ClientConnection con)
public AOByteBuffer toBytes()
public void parseBytes(AOByteBuffer buf)
Event
parseBytes
in interface EventParser
parseBytes
in class Event
public void setAttackerOid(OID id)
public OID getAttackerOid()
public void setTargetOid(OID oid)
public OID getTargetOid()
public void setAttackType(java.lang.String s)
public java.lang.String getAttackType()
public void setAttackStatus(boolean s)
public boolean getAttackStatus()