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 IsoGameCharactercharacterprotected shortcharacterFlagsprotected java.lang.StringcharacterReactionprotected floatdirectionXprotected floatdirectionYprotected java.lang.StringplayerReactionprotected floatpositionXprotected floatpositionYprotected floatpositionZprotected java.lang.StringzombieReaction -
Constructor Summary
Constructors Constructor Description Character() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()booleanisConsistent()voidparse(java.nio.ByteBuffer byteBuffer)protected voidreact()voidset(IsoGameCharacter gameCharacter)voidwrite(ByteBufferWriter byteBufferWriter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
parsein interfaceINetworkPacket- Overrides:
parsein classInstance
-
write
- Specified by:
writein interfaceINetworkPacket- Overrides:
writein classInstance
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket- Overrides:
isConsistentin classInstance
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket- Overrides:
getDescriptionin classInstance
-
react
protected void react()
-