Package zombie.network.packets
Class ZombiePacket
java.lang.Object
zombie.network.packets.ZombiePacket
- All Implemented Interfaces:
INetworkPacket
public class ZombiePacket extends java.lang.Object implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description short
booleanVariables
int
descriptorID
short
id
NetworkVariables.PredictionTypes
moveType
short
pfbTarget
float
pfbTargetX
float
pfbTargetY
byte
pfbTargetZ
byte
pfbType
short
realHealth
NetworkVariables.ZombieState
realState
float
realX
float
realY
byte
realZ
int
smParamTargetAngle
short
speedMod
short
target
int
timeSinceSeenFlesh
NetworkVariables.WalkType
walkType
float
x
float
y
byte
z
-
Constructor Summary
Constructors Constructor Description ZombiePacket()
-
Method Summary
Modifier and Type Method Description void
copy(ZombiePacket zombiePacket)
int
getPacketSizeBytes()
void
parse(java.nio.ByteBuffer byteBuffer)
void
set(IsoZombie zombie)
void
write(java.nio.ByteBuffer byteBuffer)
void
write(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
getDescription, isConsistent
-
Field Details
-
id
public short id -
x
public float x -
y
public float y -
z
public byte z -
descriptorID
public int descriptorID -
moveType
-
booleanVariables
public short booleanVariables -
target
public short target -
timeSinceSeenFlesh
public int timeSinceSeenFlesh -
smParamTargetAngle
public int smParamTargetAngle -
speedMod
public short speedMod -
walkType
-
realX
public float realX -
realY
public float realY -
realZ
public byte realZ -
realHealth
public short realHealth -
realState
-
pfbType
public byte pfbType -
pfbTarget
public short pfbTarget -
pfbTargetX
public float pfbTargetX -
pfbTargetY
public float pfbTargetY -
pfbTargetZ
public byte pfbTargetZ
-
-
Constructor Details
-
ZombiePacket
public ZombiePacket()
-
-
Method Details
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
public void write(java.nio.ByteBuffer byteBuffer) -
write
- Specified by:
write
in interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacket
-
copy
-
set
-