Class PlayerPacket
java.lang.Object
zombie.network.packets.character.PlayerPacket
- All Implemented Interfaces:
AntiCheatNoClip.IAntiCheat,AntiCheatPlayer.IAntiCheat,AntiCheatPower.IAntiCheat,AntiCheatRole.IAntiCheat,AntiCheatSpeed.IAntiCheat,INetworkPacketField,IDescriptor,INetworkPacket
- Direct Known Subclasses:
PlayerPacketReliable,PlayerPacketUnreliable
public class PlayerPacket
extends Object
implements INetworkPacket, AntiCheatPower.IAntiCheat, AntiCheatRole.IAntiCheat, AntiCheatSpeed.IAntiCheat, AntiCheatNoClip.IAntiCheat, AntiCheatPlayer.IAntiCheat
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyteshortfloatbooleanfloatbytestatic final intbyteintfloatfloatbyteintbytebooleanshortshortfloatfloatbyte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(PlayerPacket arg0) shortintbytegetPosition(Vector3 arg0) intvoidparse(ByteBuffer arg0, UdpConnection arg1) voidprocessClient(UdpConnection arg0) voidprocessServer(PacketTypes.PacketType arg0, UdpConnection arg1) voidvoidwrite(ByteBufferWriter arg0) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface zombie.network.packets.INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClients, sendToConnection, sendToRelativeClients, sendToServer, setData, syncMethods inherited from interface zombie.network.fields.INetworkPacketField
isConsistent
-
Field Details
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
-
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 short booleanVariables -
roleId
public int roleId -
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 -
endurance
public float endurance -
variables
-
disconnected
public boolean disconnected -
type
public byte type
-
-
Constructor Details
-
PlayerPacket
public PlayerPacket()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacketField
-
set
-
copy
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
getBooleanVariables
public short getBooleanVariables()- Specified by:
getBooleanVariablesin interfaceAntiCheatPower.IAntiCheat
-
getRoleID
public int getRoleID()- Specified by:
getRoleIDin interfaceAntiCheatRole.IAntiCheat
-
getPlayer
- Specified by:
getPlayerin interfaceAntiCheatPlayer.IAntiCheat- Specified by:
getPlayerin interfaceAntiCheatPower.IAntiCheat- Specified by:
getPlayerin interfaceAntiCheatRole.IAntiCheat
-
getMovable
- Specified by:
getMovablein interfaceAntiCheatSpeed.IAntiCheat
-
getPlayerIndex
public byte getPlayerIndex()- Specified by:
getPlayerIndexin interfaceAntiCheatNoClip.IAntiCheat
-
getPosition
- Specified by:
getPositionin interfaceAntiCheatNoClip.IAntiCheat
-