atavism.agis.events
Class AgisDamageEvent
java.lang.Object
atavism.server.engine.Event
atavism.agis.events.AgisDamageEvent
- All Implemented Interfaces:
- EventParser
public class AgisDamageEvent
- 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 |
AgisDamageEvent
public AgisDamageEvent()
AgisDamageEvent
public AgisDamageEvent(AOByteBuffer buf,
ClientConnection con)
AgisDamageEvent
public AgisDamageEvent(AOObject src,
AOObject target,
int dmg)
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
setDmgSrc
public void setDmgSrc(AOObject dmgSrc)
getDmgSrc
public AOObject getDmgSrc()
setDmg
public void setDmg(int dmg)
getDmg
public int getDmg()