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