Package zombie.network.packets
Class EventPacket
java.lang.Object
zombie.network.packets.EventPacket
- All Implemented Interfaces:
INetworkPacket
public class EventPacket extends java.lang.Object implements INetworkPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventPacket.EventType -
Field Summary
Fields Modifier and Type Field Description static intMAX_PLAYER_EVENTSfloatxfloatyfloatz -
Constructor Summary
Constructors Constructor Description EventPacket() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()booleanisConsistent()booleanisMovableEvent()booleanisRelevant(UdpConnection udpConnection)booleanisTimeout()voidparse(java.nio.ByteBuffer byteBuffer)booleanprocess(IsoPlayer player)booleanset(IsoPlayer player, java.lang.String string)voidtryProcess()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
-
MAX_PLAYER_EVENTS
public static final int MAX_PLAYER_EVENTS- See Also:
- Constant Field Values
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
EventPacket
public EventPacket()
-
-
Method Details
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket
-
write
- Specified by:
writein interfaceINetworkPacket
-
isRelevant
-
isMovableEvent
public boolean isMovableEvent() -
isTimeout
public boolean isTimeout() -
tryProcess
public void tryProcess() -
process
-
set
-