public class AimingData implements ExtraInfoProvider
Class AimingData. Provides aimingdata functionality for the Hytale server.
java.lang.Object > AimingData
Field Summary
ballisticData
Field ballisticData.
useFlatTrajectory
Field useFlatTrajectory.
depthOffset
Field depthOffset.
pitchAdjustOffset
Field pitchAdjustOffset.
haveSolution
Field haveSolution.
haveOrientation
Field haveOrientation.
haveAttacked
Field haveAttacked.
chargeDistance
Field chargeDistance.
desiredHitAngle
Field desiredHitAngle.
target
Field target.
owner
Field owner.
len
Field len.
newLen
Field newLen.
scale
Field scale.
v2
Field v2.
computeStaticSolution
Field computeStaticSolution.
gravity
Field gravity.
muzzleVelocity
Field muzzleVelocity.
solutions
Field solutions.
c4
Field c4.
c5
Field c5.
c6
Field c6.
c7
Field c7.
numSolutions
Field numSolutions.
tx
Field tx.
tz
Field tz.
sine
Field sine.
p
Field p.
h
Field h.
differenceYaw
Field differenceYaw.
differencePitch
Field differencePitch.
Method Detail
AimingData
public
AimingData
()
Method AimingData.
isHaveAttacked
boolean
isHaveAttacked
()
Method isHaveAttacked.
setHaveAttacked
void
setHaveAttacked
(final boolean haveAttacked)
Method setHaveAttacked.
- Parameters:
final booleanhaveAttacked
requireCloseCombat
void
requireCloseCombat
()
Method requireCloseCombat.
getPitch
float
getPitch
()
Method getPitch.
getYaw
float
getYaw
()
Method getYaw.
isBallistic
boolean
isBallistic
()
Method isBallistic.
setUseFlatTrajectory
void
setUseFlatTrajectory
(final boolean useFlatTrajectory)
Method setUseFlatTrajectory.
- Parameters:
final booleanuseFlatTrajectory
setChargeDistance
void
setChargeDistance
(final double chargeDistance)
Method setChargeDistance.
- Parameters:
final doublechargeDistance
getChargeDistance
double
getChargeDistance
()
Method getChargeDistance.
setDesiredHitAngle
void
setDesiredHitAngle
(final double desiredHitAngle)
Method setDesiredHitAngle.
- Parameters:
final doubledesiredHitAngle
getDesiredHitAngle
double
getDesiredHitAngle
()
Method getDesiredHitAngle.
getType
Class
getType
()
Method getType.
setDepthOffset
void
setDepthOffset
(final double depthOffset, final boolean pitchAdjustOffset)
Method setDepthOffset.
- Parameters:
final doubledepthOffsetfinal booleanpitchAdjustOffset
haveOrientation
boolean
haveOrientation
()
Method haveOrientation.
setOrientation
void
setOrientation
(final float yaw, final float pitch)
Method setOrientation.
- Parameters:
final floatyawfinal floatpitch
clearSolution
void
clearSolution
()
Method clearSolution.
computeSolution
boolean
computeSolution
(double x, final double y, double z, final double vx, final double vy, final double vz)
Method computeSolution.
- Parameters:
doublexfinal doubleydoublezfinal doublevxfinal doublevyfinal doublevz
isOnTarget
boolean
isOnTarget
(final float yaw, final float pitch, final double hitAngle)
Method isOnTarget.
- Parameters:
final floatyawfinal floatpitchfinal doublehitAngle
tryClaim
void
tryClaim
(final int id)
Method tryClaim.
- Parameters:
final intid
isClaimedBy
boolean
isClaimedBy
(final int id)
Method isClaimedBy.
- Parameters:
final intid
release
void
release
()
Method release.
clear
void
clear
()
Method clear.
computeStaticSolution
boolean
computeStaticSolution
(final double dx, final double dy)
Method computeStaticSolution.
- Parameters:
final doubledxfinal doubledy