Package zombie.network.packets.hit
Class HitCharacterPacket
java.lang.Object
zombie.network.packets.hit.HitCharacterPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
PlayerHitPacket,VehicleHitPacket,ZombieHitPlayerPacket
public abstract class HitCharacterPacket extends java.lang.Object implements INetworkPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHitCharacterPacket.HitType -
Constructor Summary
Constructors Constructor Description HitCharacterPacket(HitCharacterPacket.HitType hitType) -
Method Summary
Modifier and Type Method Description protected abstract voidattack()java.lang.StringgetDescription()java.lang.StringgetHitDescription()abstract booleanisRelevant(UdpConnection udpConnection)protected voidpostpone()protected voidpostProcess()protected voidpreProcess()protected voidprocess()static HitCharacterPacketprocess(java.nio.ByteBuffer byteBuffer)protected abstract voidreact()voidtryProcess()voidtryProcessInternal()voidwrite(ByteBufferWriter byteBufferWriter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.network.packets.INetworkPacket
getPacketSizeBytes, isConsistent, parse
-
Constructor Details
-
HitCharacterPacket
-
-
Method Details
-
process
-
write
- Specified by:
writein interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket
-
getHitDescription
public java.lang.String getHitDescription() -
tryProcess
public void tryProcess() -
tryProcessInternal
public void tryProcessInternal() -
isRelevant
-
attack
protected abstract void attack() -
react
protected abstract void react() -
preProcess
protected void preProcess() -
process
protected void process() -
postProcess
protected void postProcess() -
postpone
protected void postpone()
-