Package zombie.network.packets.hit
Class Hit
java.lang.Object
zombie.network.packets.hit.Hit
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
VehicleHit
,WeaponHit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
void
parse
(ByteBuffer b, UdpConnection connection) void
set
(boolean ignore, float damage, float hitForce, float hitDirectionX, float hitDirectionY) void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.INetworkPacket
getPacketSizeBytes, isConsistent, log
-
Constructor Details
-
Hit
public Hit()
-
-
Method Details
-
set
public void set(boolean ignore, float damage, float hitForce, float hitDirectionX, float hitDirectionY) -
parse
- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
-
getDamage
public float getDamage()
-