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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
attack()
boolean
boolean
isRelevant
(UdpConnection udpConnection) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) protected void
protected void
protected void
react()
void
set
(IsoPlayer player, HandWeapon handWeapon, boolean boolean1) void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
postpone, process, process, tryProcess, tryProcessInternal, validate
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, log
-
Field Details
-
wielder
-
weapon
-
-
Constructor Details
-
PlayerHitPacket
-
-
Method Details
-
set
-
parse
- 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
- 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
-