Class Character
java.lang.Object
zombie.network.fields.character.CharacterID
zombie.network.fields.hit.Character
- All Implemented Interfaces:
INetworkPacketField
,IPositional
,IDescriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getX()
float
getY()
float
getZ()
boolean
isConsistent
(UdpConnection udpConnection) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
react()
void
set
(IsoGameCharacter isoGameCharacter) void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class zombie.network.fields.character.CharacterID
getCharacter, write
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.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.fields.INetworkPacketField
getPacketSizeBytes
-
Field Details
-
characterFlags
protected short characterFlags -
positionX
protected float positionX -
positionY
protected float positionY -
positionZ
protected float positionZ -
directionX
protected float directionX -
directionY
protected float directionY -
characterReaction
-
playerReaction
-
zombieReaction
-
-
Constructor Details
-
Character
public Character()
-
-
Method Details
-
set
- Overrides:
set
in classCharacterID
-
parse
- Specified by:
parse
in interfaceINetworkPacketField
- Overrides:
parse
in classCharacterID
-
write
- Specified by:
write
in interfaceINetworkPacketField
- Overrides:
write
in classCharacterID
-
isConsistent
- Specified by:
isConsistent
in interfaceINetworkPacketField
- Overrides:
isConsistent
in classCharacterID
-
react
public void react() -
getX
public float getX()- Specified by:
getX
in interfaceIPositional
- Overrides:
getX
in classCharacterID
-
getY
public float getY()- Specified by:
getY
in interfaceIPositional
- Overrides:
getY
in classCharacterID
-
getZ
public float getZ()- Specified by:
getZ
in interfaceIPositional
- Overrides:
getZ
in classCharacterID
-