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 class
HitCharacterPacket.HitType
-
Constructor Summary
Constructors Constructor Description HitCharacterPacket(HitCharacterPacket.HitType hitType)
-
Method Summary
Modifier and Type Method Description protected abstract void
attack()
java.lang.String
getDescription()
java.lang.String
getHitDescription()
abstract boolean
isRelevant(UdpConnection udpConnection)
protected void
postpone()
protected void
postProcess()
protected void
preProcess()
protected void
process()
static HitCharacterPacket
process(java.nio.ByteBuffer byteBuffer)
protected abstract void
react()
void
tryProcess()
void
tryProcessInternal()
void
write(ByteBufferWriter byteBufferWriter)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.INetworkPacket
getPacketSizeBytes, isConsistent, parse
-
Constructor Details
-
HitCharacterPacket
-
-
Method Details
-
process
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in 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()
-