Class CharacterID
java.lang.Object
zombie.network.fields.character.CharacterID
- All Implemented Interfaces:
INetworkPacketField, IPositional, IDescriptor
- Direct Known Subclasses:
Character
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortgetID()floatgetX()floatgetY()floatgetZ()booleanisConsistent(UdpConnection connection) voidparse(ByteBuffer b, UdpConnection connection) voidset(short ID, byte type) voidset(IsoGameCharacter character) 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
getPacketSizeBytesMethods inherited from interface IPositional
isInRange
-
Field Details
-
UNKNOWN
public static final byte UNKNOWN- See Also:
-
PLAYER
public static final byte PLAYER- See Also:
-
ZOMBIE
public static final byte ZOMBIE- See Also:
-
ANIMAL
public static final byte ANIMAL- See Also:
-
-
Constructor Details
-
CharacterID
public CharacterID()
-
-
Method Details
-
set
public void set(short ID, byte type) -
set
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
write
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
getX
public float getX()- Specified by:
getXin interfaceIPositional
-
getY
public float getY()- Specified by:
getYin interfaceIPositional
-
getZ
public float getZ()- Specified by:
getZin interfaceIPositional
-
getCharacter
-
getID
public short getID()
-