Add some initial values.

This commit is contained in:
asofold 2013-01-31 09:23:20 +01:00
parent 048831b55b
commit f38822e4d5

View File

@ -98,44 +98,43 @@ public class MovingData extends ACheckData {
public int morePacketsBuffer = 50; public int morePacketsBuffer = 50;
public long morePacketsLastTime; public long morePacketsLastTime;
public int morePacketsPackets; public int morePacketsPackets;
private Location morePacketsSetback; private Location morePacketsSetback = null;
// Data of the more packets vehicle check. // Data of the more packets vehicle check.
public int morePacketsVehicleBuffer = 50; public int morePacketsVehicleBuffer = 50;
public long morePacketsVehicleLastTime; public long morePacketsVehicleLastTime;
public int morePacketsVehiclePackets; public int morePacketsVehiclePackets;
private Location morePacketsVehicleSetback; private Location morePacketsVehicleSetback = null;
/** Task id of the morepackets set-back task. */ /** Task id of the morepackets set-back task. */
public int morePacketsVehicleTaskId = -1; public int morePacketsVehicleTaskId = -1;
// Data of the no fall check. // Data of the no fall check.
public float noFallFallDistance; public float noFallFallDistance = 0;
// public boolean noFallOnGround; // public boolean noFallOnGround;
// public boolean noFallWasOnGround; // public boolean noFallWasOnGround;
/** Last y coordinate from when the player was on ground. */ /** Last y coordinate from when the player was on ground. */
public double noFallMaxY; public double noFallMaxY = 0;
/** Indicate that NoFall should assume the player to be on ground. */ /** Indicate that NoFall should assume the player to be on ground. */
public boolean noFallAssumeGround; public boolean noFallAssumeGround = false;
/** Indicate that NoFall is not to use next damage event for checking on-ground properties. */ /** Indicate that NoFall is not to use next damage event for checking on-ground properties. */
public boolean noFallSkipAirCheck = false; public boolean noFallSkipAirCheck = false;
// Passable check. // Passable check.
public double passableVL; public double passableVL;
// Data of the survival fly check. // Data of the survival fly check.
public double sfHorizontalBuffer; public double sfHorizontalBuffer = 0;
public int sfJumpPhase; public int sfJumpPhase = 0;
// public double survivalFlyLastFromY;
/** /**
* Last valid y distance covered by a move. Integer.MAX_VALUE indicates "not set". * Last valid y distance covered by a move. Integer.MAX_VALUE indicates "not set".
*/ */
public double sfLastYDist = Double.MAX_VALUE; public double sfLastYDist = Double.MAX_VALUE;
/** A value <0 means not hovering at all. */ /** A value <0 means not hovering at all. */
public int sfHoverTicks = -1; public int sfHoverTicks = -1;
public int sfFlyOnIce; public int sfFlyOnIce = 0;
public long sfCobwebTime; public long sfCobwebTime = 0;
public double sfCobwebVL; public double sfCobwebVL = 0;
public long sfVLTime; public long sfVLTime = 0;
// Accounting info. // Accounting info.
// TODO: optimize later. // TODO: optimize later.
@ -145,8 +144,8 @@ public class MovingData extends ACheckData {
public final ActionFrequency vDistCount = new ActionFrequency(3, 333); public final ActionFrequency vDistCount = new ActionFrequency(3, 333);
// Locations shared between all checks. // Locations shared between all checks.
private Location setBack; private Location setBack = null;
private Location teleported; private Location teleported = null;
/** /**
* Clear the data of the fly checks (not more-packets). * Clear the data of the fly checks (not more-packets).