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 float
angle
protected IsoGameCharacter
character
protected byte
characterFlags
protected IsoDirections
direction
protected short
id
protected IsoGameCharacter
killer
protected float
x
protected float
y
protected float
z
-
Constructor Summary
Constructors Constructor Description DeadCharacterPacket()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDeathDescription()
java.lang.String
getDescription()
boolean
isConsistent()
void
parse(java.nio.ByteBuffer byteBuffer)
protected void
parseCharacterInventory(java.nio.ByteBuffer byteBuffer)
void
parseDeadBodyInventory(java.nio.ByteBuffer byteBuffer)
void
process()
void
set(IsoGameCharacter gameCharacter)
void
write(ByteBufferWriter byteBufferWriter)
void
writeCharacterInventory(ByteBufferWriter byteBufferWriter)
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
-
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:
parse
in interfaceINetworkPacket
-
parseDeadBodyInventory
public void parseDeadBodyInventory(java.nio.ByteBuffer byteBuffer) -
parseCharacterInventory
protected void parseCharacterInventory(java.nio.ByteBuffer byteBuffer) -
writeCharacterInventory
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
-
getDeathDescription
public java.lang.String getDeathDescription() -
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-