Package zombie.network.packets.hit
Class PlayerHitPacket
java.lang.Object
zombie.network.packets.hit.HitCharacterPacket
zombie.network.packets.hit.PlayerHitPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
PlayerHitPlayerPacket
,PlayerHitSquarePacket
,PlayerHitVehiclePacket
,PlayerHitZombiePacket
public abstract class PlayerHitPacket 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 PlayerHitPacket(HitCharacterPacket.HitType hitType)
-
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
react()
void
set(IsoPlayer player, HandWeapon handWeapon, boolean boolean1)
void
write(ByteBufferWriter byteBufferWriter)
Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
getHitDescription, postpone, process, 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
-
weapon
-
-
Constructor Details
-
PlayerHitPacket
-
-
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
-
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
-