Package zombie.network.packets
Class PlayerPacket
java.lang.Object
zombie.network.packets.PlayerPacket
- All Implemented Interfaces:
INetworkPacket
public class PlayerPacket extends java.lang.Object implements INetworkPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerPacket.l_receive
static class
PlayerPacket.l_send
-
Field Summary
Fields Modifier and Type Field Description byte
bleedingLevel
int
booleanVariables
float
collidePointX
float
collidePointY
float
direction
byte
footstepSoundRadius
short
id
NetworkVariables.PredictionTypes
moveType
static int
PACKET_SIZE_BYTES
byte
realdir
int
realt
float
realx
float
realy
byte
realz
boolean
usePathFinder
PlayerVariables
variables
short
VehicleID
short
VehicleSeat
float
x
float
y
byte
z
-
Constructor Summary
Constructors Constructor Description PlayerPacket()
-
Method Summary
Modifier and Type Method Description void
copy(PlayerPacket playerPacket)
int
getPacketSizeBytes()
void
parse(java.nio.ByteBuffer byteBuffer)
boolean
set(IsoPlayer player)
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
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
- Constant Field Values
-
id
public short id -
x
public float x -
y
public float y -
z
public byte z -
direction
public float direction -
usePathFinder
public boolean usePathFinder -
moveType
-
VehicleID
public short VehicleID -
VehicleSeat
public short VehicleSeat -
booleanVariables
public int booleanVariables -
footstepSoundRadius
public byte footstepSoundRadius -
bleedingLevel
public byte bleedingLevel -
realx
public float realx -
realy
public float realy -
realz
public byte realz -
realdir
public byte realdir -
realt
public int realt -
collidePointX
public float collidePointX -
collidePointY
public float collidePointY -
variables
-
-
Constructor Details
-
PlayerPacket
public PlayerPacket()
-
-
Method Details
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacket
-
set
-
copy
-