Package zombie.network.packets.hit
Class MovingObject
java.lang.Object
zombie.network.packets.hit.MovingObject
- All Implemented Interfaces:
INetworkPacket
public class MovingObject extends java.lang.Object implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description byte
objectTypeNone
byte
objectTypeObject
byte
objectTypePlayer
byte
objectTypeVehicle
byte
objectTypeZombie
-
Constructor Summary
Constructors Constructor Description MovingObject()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
IsoMovingObject
getMovingObject()
int
getPacketSizeBytes()
void
parse(java.nio.ByteBuffer byteBuffer)
void
setMovingObject(IsoMovingObject movingObject)
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
isConsistent
-
Field Details
-
objectTypeNone
public final byte objectTypeNone- See Also:
- Constant Field Values
-
objectTypePlayer
public final byte objectTypePlayer- See Also:
- Constant Field Values
-
objectTypeZombie
public final byte objectTypeZombie- See Also:
- Constant Field Values
-
objectTypeVehicle
public final byte objectTypeVehicle- See Also:
- Constant Field Values
-
objectTypeObject
public final byte objectTypeObject- See Also:
- Constant Field Values
-
-
Constructor Details
-
MovingObject
public MovingObject()
-
-
Method Details
-
setMovingObject
-
getMovingObject
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
-