PidStatus
Immutable PID priority snapshot for the current combat target.
Final classRLPlugins API
public final class PidStatusMembers
Constructors
- newPidStatus(PidPriority, int, int, int, int)
Creates a PID status snapshot.
Methods
- booleanequals(Object)
Whether this and the other object are the same thing.
- intgetConfidence()
The confidence.
- intgetLastDetectedTick()
The last detected tick.
- PidPrioritygetPriority()
The priority.
- intgetSnapshotTick()
The snapshot tick.
- intgetTicksSinceChange()
The ticks since change.
- booleanhasAdvantage()
Whether it has advantage.
- inthashCode()
A number Java uses when this is put in a set or a map.
- booleanisReliable()
Whether reliable.
- StringtoString()
A text form, for log lines.
- PidStatusunknown()
Unknown.
PidStatus(PidPriority, int, int, int, int)
public PidStatus(PidPriority priority, int confidence, int lastDetectedTick, int ticksSinceChange, int snapshotTick)Creates a PID status snapshot.
Parameters
priority- Inferred local priority.
confidence- Confidence from
0to100. lastDetectedTick- Last tick with a conclusive timing sample.
ticksSinceChange- Ticks since the inferred priority changed.
snapshotTick- Game tick when this snapshot was created.
equals(Object)
public boolean equals(Object o)Whether this and the other object are the same thing.
Parameters
o- O.
getConfidence()
public int getConfidence()The confidence.
getLastDetectedTick()
public int getLastDetectedTick()The last detected tick.
getPriority()
public PidPriority getPriority()The priority.
getSnapshotTick()
public int getSnapshotTick()The snapshot tick.
getTicksSinceChange()
public int getTicksSinceChange()The ticks since change.
hasAdvantage()
public boolean hasAdvantage()Whether it has advantage.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
isReliable()
public boolean isReliable()Whether reliable.
toString()
public String toString()A text form, for log lines.
unknown()static
public static PidStatus unknown()Unknown.