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
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.network.packets.hit.HitCharacterPacket
HitCharacterPacket.HitType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattack()booleanbooleanisRelevant(UdpConnection udpConnection) voidparse(ByteBuffer byteBuffer, UdpConnection udpConnection) protected voidprotected voidprotected voidreact()voidset(IsoPlayer player, HandWeapon handWeapon, boolean boolean1) voidwrite(ByteBufferWriter byteBufferWriter) Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
postpone, process, process, tryProcess, tryProcessInternal, validateMethods 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, log
-
Field Details
-
wielder
-
weapon
-
-
Constructor Details
-
PlayerHitPacket
-
-
Method Details
-
set
-
parse
- 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
- 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
-