atavism.server.events
Class AutoAttackEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.AutoAttackEvent
- All Implemented Interfaces:
- EventParser
public class AutoAttackEvent
- extends Event
| 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 |
AutoAttackEvent
public AutoAttackEvent()
AutoAttackEvent
public AutoAttackEvent(AOByteBuffer buf,
ClientConnection con)
AutoAttackEvent
public AutoAttackEvent(AOObject attacker,
AOObject target,
java.lang.String attackType,
boolean attackStatus)
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()