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 class
EventPacket.EventType
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_PLAYER_EVENTS
float
x
float
y
float
z
-
Constructor Summary
Constructors Constructor Description EventPacket()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
boolean
isConsistent()
boolean
isMovableEvent()
boolean
isRelevant(UdpConnection udpConnection)
boolean
isTimeout()
void
parse(java.nio.ByteBuffer byteBuffer)
boolean
process(IsoPlayer player)
boolean
set(IsoPlayer player, java.lang.String string)
void
tryProcess()
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
-
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:
getDescription
in interfaceINetworkPacket
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
isRelevant
-
isMovableEvent
public boolean isMovableEvent() -
isTimeout
public boolean isTimeout() -
tryProcess
public void tryProcess() -
process
-
set
-