Package zombie.network.packets
Class DeadCharacterPacket
java.lang.Object
zombie.network.packets.DeadCharacterPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
DeadPlayerPacket,DeadZombiePacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected IsoGameCharacterprotected byteprotected IsoDirectionsshortprotected IsoGameCharacterprotected floatprotected floatprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IsoDeadBodybooleanvoidparse(ByteBuffer byteBuffer, UdpConnection udpConnection) protected voidparseCharacterHumanVisuals(ByteBuffer byteBuffer) protected voidparseCharacterInventory(ByteBuffer byteBuffer) protected voidparseDeadBodyHumanVisuals(IsoDeadBody deadBody, ByteBuffer byteBuffer) protected voidparseDeadBodyInventory(IsoDeadBody deadBody, ByteBuffer byteBuffer) voidprocess()voidset(IsoGameCharacter gameCharacter) voidwrite(ByteBufferWriter byteBufferWriter) protected voidwriteCharacterHumanVisuals(ByteBufferWriter byteBufferWriter) protected voidwriteCharacterInventory(ByteBufferWriter byteBufferWriter) Methods 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
-
id
public short id -
x
protected float x -
y
protected float y -
z
protected float z -
angle
protected float angle -
direction
-
characterFlags
protected byte characterFlags -
killer
-
character
-
-
Constructor Details
-
DeadCharacterPacket
public DeadCharacterPacket()
-
-
Method Details
-
set
-
process
public void process() -
parse
- Specified by:
parsein interfaceINetworkPacket
-
getDeadBody
-
parseDeadBodyInventory
-
parseDeadBodyHumanVisuals
-
parseCharacterInventory
-
writeCharacterInventory
-
writeCharacterHumanVisuals
-
parseCharacterHumanVisuals
-
write
- Specified by:
writein interfaceINetworkPacket
-
getDescription
- Specified by:
getDescriptionin interfaceINetworkPacket
-
getDeathDescription
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket
-