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