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 shortbooleanVariablesintdescriptorIDshortidNetworkVariables.PredictionTypesmoveTypeshortpfbTargetfloatpfbTargetXfloatpfbTargetYbytepfbTargetZbytepfbTypeshortrealHealthNetworkVariables.ZombieStaterealStatefloatrealXfloatrealYbyterealZintsmParamTargetAngleshortspeedModshorttargetinttimeSinceSeenFleshNetworkVariables.WalkTypewalkTypefloatxfloatybytez -
Constructor Summary
Constructors Constructor Description ZombiePacket() -
Method Summary
Modifier and Type Method Description voidcopy(ZombiePacket zombiePacket)intgetPacketSizeBytes()voidparse(java.nio.ByteBuffer byteBuffer)voidset(IsoZombie zombie)voidwrite(java.nio.ByteBuffer byteBuffer)voidwrite(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
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:
parsein interfaceINetworkPacket
-
write
public void write(java.nio.ByteBuffer byteBuffer) -
write
- Specified by:
writein interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacket
-
copy
-
set
-