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 voidattack()java.lang.StringgetDescription()booleanisConsistent()booleanisRelevant(UdpConnection udpConnection)voidparse(java.nio.ByteBuffer byteBuffer)protected voidpostProcess()protected voidpreProcess()protected voidreact()voidset(IsoPlayer player, HandWeapon handWeapon, boolean boolean1)voidwrite(ByteBufferWriter byteBufferWriter)Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
getHitDescription, postpone, process, process, tryProcess, tryProcessInternalMethods 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
-
Field Details
-
wielder
-
weapon
-
-
Constructor Details
-
PlayerHitPacket
-
-
Method Details
-
set
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket
-
write
- Specified by:
writein interfaceINetworkPacket- Overrides:
writein classHitCharacterPacket
-
isRelevant
- Specified by:
isRelevantin classHitCharacterPacket
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket- Overrides:
getDescriptionin classHitCharacterPacket
-
preProcess
protected void preProcess()- Overrides:
preProcessin classHitCharacterPacket
-
postProcess
protected void postProcess()- Overrides:
postProcessin classHitCharacterPacket
-
attack
protected void attack()- Specified by:
attackin classHitCharacterPacket
-
react
protected void react()- Specified by:
reactin classHitCharacterPacket
-