Package zombie.network.packets.hit
Class Character
java.lang.Object
zombie.network.packets.hit.Instance
zombie.network.packets.hit.Character
- All Implemented Interfaces:
INetworkPacket
public abstract class Character extends Instance implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description protected IsoGameCharacter
character
protected short
characterFlags
protected java.lang.String
characterReaction
protected float
directionX
protected float
directionY
protected java.lang.String
playerReaction
protected float
positionX
protected float
positionY
protected float
positionZ
protected java.lang.String
zombieReaction
-
Constructor Summary
Constructors Constructor Description Character()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
boolean
isConsistent()
void
parse(java.nio.ByteBuffer byteBuffer)
protected void
react()
void
set(IsoGameCharacter gameCharacter)
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
getPacketSizeBytes
-
Field Details
-
character
-
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
protected java.lang.String characterReaction -
playerReaction
protected java.lang.String playerReaction -
zombieReaction
protected java.lang.String zombieReaction
-
-
Constructor Details
-
Character
public Character()
-
-
Method Details
-
set
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
- Overrides:
parse
in classInstance
-
write
- Specified by:
write
in interfaceINetworkPacket
- Overrides:
write
in classInstance
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
- Overrides:
isConsistent
in classInstance
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
- Overrides:
getDescription
in classInstance
-
react
protected void react()
-