Class Hit
java.lang.Object
zombie.network.fields.hit.Hit
- All Implemented Interfaces:
INetworkPacketField, IDescriptor
- Direct Known Subclasses:
VehicleHitField, WeaponHit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidparse(ByteBuffer b, UdpConnection connection) voidset(float damage, float hitForce, float hitDirectionX, float hitDirectionY) voidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacketField
getPacketSizeBytes, isConsistent
-
Constructor Details
-
Hit
public Hit()
-
-
Method Details
-
set
public void set(float damage, float hitForce, float hitDirectionX, float hitDirectionY) -
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
getDamage
public float getDamage()
-