Class WeaponHit
java.lang.Object
zombie.network.fields.hit.Hit
zombie.network.fields.hit.WeaponHit
- All Implemented Interfaces:
INetworkPacketField, IDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparse(ByteBuffer b, UdpConnection connection) voidprocess(IsoGameCharacter wielder, IsoGameCharacter target, HandWeapon weapon, boolean ignore) voidset(float damage, float range, float hitForce, float hitDirectionX, float hitDirectionY, boolean hitHead) 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
-
WeaponHit
public WeaponHit()
-
-
Method Details
-
set
public void set(float damage, float range, float hitForce, float hitDirectionX, float hitDirectionY, boolean hitHead) -
parse
- Specified by:
parsein interfaceINetworkPacketField- Overrides:
parsein classHit
-
write
- Specified by:
writein interfaceINetworkPacketField- Overrides:
writein classHit
-
process
public void process(IsoGameCharacter wielder, IsoGameCharacter target, HandWeapon weapon, boolean ignore)
-