Package zombie.network.packets
Class DeadCharacterPacket
java.lang.Object
zombie.network.packets.DeadCharacterPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
DeadPlayerPacket,DeadZombiePacket
public abstract class DeadCharacterPacket extends java.lang.Object implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description protected floatangleprotected IsoGameCharactercharacterprotected bytecharacterFlagsprotected IsoDirectionsdirectionprotected shortidprotected IsoGameCharacterkillerprotected floatxprotected floatyprotected floatz -
Constructor Summary
Constructors Constructor Description DeadCharacterPacket() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDeathDescription()java.lang.StringgetDescription()booleanisConsistent()voidparse(java.nio.ByteBuffer byteBuffer)protected voidparseCharacterInventory(java.nio.ByteBuffer byteBuffer)voidparseDeadBodyInventory(java.nio.ByteBuffer byteBuffer)voidprocess()voidset(IsoGameCharacter gameCharacter)voidwrite(ByteBufferWriter byteBufferWriter)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
-
Field Details
-
id
protected 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
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket
-
parseDeadBodyInventory
public void parseDeadBodyInventory(java.nio.ByteBuffer byteBuffer) -
parseCharacterInventory
protected void parseCharacterInventory(java.nio.ByteBuffer byteBuffer) -
writeCharacterInventory
-
write
- Specified by:
writein interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket
-
getDeathDescription
public java.lang.String getDeathDescription() -
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket
-