Class Position
java.lang.Object
zombie.network.fields.Position
- All Implemented Interfaces:
INetworkPacketField, IPositional, IDescriptor
- Direct Known Subclasses:
AddBloodPacket, DeadCharacterPacket, Square, StatePacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfloatgetX()floatgetY()floatgetZ()voidparse(ByteBuffer b, UdpConnection connection) voidset(float x, float y, float z) voidwrite(ByteBuffer b) voidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacketField
getPacketSizeBytes, isConsistentMethods inherited from interface IPositional
isInRange
-
Constructor Details
-
Position
public Position()
-
-
Method Details
-
set
public void set(float x, float y, float z) -
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
write
-
getX
public float getX()- Specified by:
getXin interfaceIPositional
-
getY
public float getY()- Specified by:
getYin interfaceIPositional
-
getZ
public float getZ()- Specified by:
getZin interfaceIPositional
-
copy
-