Package zombie.network.packets.hit
Class ZombieHitPlayerPacket
java.lang.Object
zombie.network.packets.hit.HitCharacterPacket
zombie.network.packets.hit.ZombieHitPlayerPacket
- All Implemented Interfaces:
INetworkPacket
public class ZombieHitPlayerPacket extends HitCharacterPacket implements INetworkPacket
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.network.packets.hit.HitCharacterPacket
HitCharacterPacket.HitType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ZombieHitPlayerPacket()
-
Method Summary
Modifier and Type Method Description protected void
attack()
java.lang.String
getDescription()
boolean
isConsistent()
boolean
isRelevant(UdpConnection udpConnection)
void
parse(java.nio.ByteBuffer byteBuffer)
protected void
postProcess()
protected void
preProcess()
protected void
process()
protected void
react()
void
set(IsoZombie zombie, IsoPlayer player)
void
write(ByteBufferWriter byteBufferWriter)
Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
getHitDescription, postpone, process, tryProcess, tryProcessInternal
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
-
Field Details
-
wielder
-
target
-
bite
-
-
Constructor Details
-
ZombieHitPlayerPacket
public ZombieHitPlayerPacket()
-
-
Method Details
-
set
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
- Overrides:
write
in classHitCharacterPacket
-
isRelevant
- Specified by:
isRelevant
in classHitCharacterPacket
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
- Overrides:
getDescription
in classHitCharacterPacket
-
preProcess
protected void preProcess()- Overrides:
preProcess
in classHitCharacterPacket
-
process
protected void process()- Overrides:
process
in classHitCharacterPacket
-
postProcess
protected void postProcess()- Overrides:
postProcess
in classHitCharacterPacket
-
attack
protected void attack()- Specified by:
attack
in classHitCharacterPacket
-
react
protected void react()- Specified by:
react
in classHitCharacterPacket
-