Class VehicleHitField
java.lang.Object
zombie.network.fields.hit.Hit
zombie.network.fields.hit.VehicleHitField
- All Implemented Interfaces:
IMovable, INetworkPacketField, IDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetSpeed()booleanvoidparse(ByteBuffer b, UdpConnection connection) voidprocess(IsoGameCharacter wielder, IsoGameCharacter target, BaseVehicle vehicle) voidset(boolean ignore, float damage, float hitForce, float hitDirectionX, float hitDirectionY, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind, boolean isTargetHitFromBehind) 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
-
Field Details
-
vehicleDamage
public int vehicleDamage -
vehicleSpeed
public float vehicleSpeed -
isVehicleHitFromBehind
public boolean isVehicleHitFromBehind -
isTargetHitFromBehind
public boolean isTargetHitFromBehind
-
-
Constructor Details
-
VehicleHitField
public VehicleHitField()
-
-
Method Details
-
set
public void set(boolean ignore, float damage, float hitForce, float hitDirectionX, float hitDirectionY, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind, boolean isTargetHitFromBehind) -
parse
- Specified by:
parsein interfaceINetworkPacketField- Overrides:
parsein classHit
-
write
- Specified by:
writein interfaceINetworkPacketField- Overrides:
writein classHit
-
process
-
getSpeed
-
isVehicle
-