Package zombie.network.packets
Class DeadCharacterPacket
java.lang.Object
zombie.network.packets.DeadCharacterPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
DeadPlayerPacket
,DeadZombiePacket
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected IsoGameCharacter
protected byte
protected IsoDirections
short
protected IsoGameCharacter
protected float
protected float
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IsoDeadBody
boolean
void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) protected void
parseCharacterHumanVisuals
(ByteBuffer byteBuffer) protected void
parseCharacterInventory
(ByteBuffer byteBuffer) protected void
parseDeadBodyHumanVisuals
(IsoDeadBody deadBody, ByteBuffer byteBuffer) protected void
parseDeadBodyInventory
(IsoDeadBody deadBody, ByteBuffer byteBuffer) void
process()
void
set
(IsoGameCharacter gameCharacter) void
write
(ByteBufferWriter byteBufferWriter) protected void
writeCharacterHumanVisuals
(ByteBufferWriter byteBufferWriter) protected 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, 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:
parse
in interfaceINetworkPacket
-
getDeadBody
-
parseDeadBodyInventory
-
parseDeadBodyHumanVisuals
-
parseCharacterInventory
-
writeCharacterInventory
-
writeCharacterHumanVisuals
-
parseCharacterHumanVisuals
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
-
getDeathDescription
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-