Class PathingBehavior
java.lang.Object
com.zenith.feature.pathfinder.behavior.Behavior
com.zenith.feature.pathfinder.behavior.PathingBehavior
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanvoidgetGoal()longgetNext()getPath()@Nullable com.google.common.util.concurrent.ListenableFuture<?> intbooleanhasPath()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidonTick()See issue #209voidvoidvoidsecretInternalSetGoal(Goal goal) booleanvoidReturns the estimated remaining ticks in the current pathing segment.ticksRemainingInSegment(boolean includeCurrentMovement) Returns the estimated remaining ticks in the current pathing segment.
-
Constructor Details
-
PathingBehavior
-
-
Method Details
-
onClientBotTickStateChange
public void onClientBotTickStateChange() -
onTick
public void onTick() -
secretInternalSetGoal
-
secretInternalSetGoalAndPath
-
isPathing
public boolean isPathing() -
getInProgress
-
isSafeToCancel
public boolean isSafeToCancel() -
requestPause
public void requestPause() -
cancelSegmentIfSafe
public boolean cancelSegmentIfSafe() -
cancelEverything
public boolean cancelEverything() -
calcFailedLastTick
public boolean calcFailedLastTick() -
softCancelIfSafe
public void softCancelIfSafe() -
secretInternalSegmentCancel
public void secretInternalSegmentCancel() -
forceCancel
public void forceCancel() -
secretInternalGetCalculationContext
-
estimatedTicksToGoal
-
pathStart
-
ticksRemainingInSegment
Returns the estimated remaining ticks in the current pathing segment. Given that the return type is an optional,Optional.empty()will be returned in the case that there is no current segment being pathed.- Returns:
- The estimated remaining ticks in the current segment.
-
ticksRemainingInSegment
Returns the estimated remaining ticks in the current pathing segment. Given that the return type is an optional,Optional.empty()will be returned in the case that there is no current segment being pathed.- Parameters:
includeCurrentMovement- whether or not to include the entirety of the cost of the currently executing movement in the total- Returns:
- The estimated remaining ticks in the current segment.
-
getPath
-
hasPath
public boolean hasPath()- Returns:
- If there is a current path. Note that the path is not necessarily being executed, for example when there is a pause in effect.
- See Also:
-
getCurrent
-
getNext
-
getGoal
-
getContext
-
getTicksElapsedSoFar
public int getTicksElapsedSoFar() -
getStartPosition
-
isPauseRequestedLastTick
public boolean isPauseRequestedLastTick() -
isUnpausedLastTick
public boolean isUnpausedLastTick() -
isPausedThisTick
public boolean isPausedThisTick() -
isCancelRequested
public boolean isCancelRequested() -
isCalcFailedLastTick
public boolean isCalcFailedLastTick() -
getPathCalcLock
-
getPathPlanLock
-
getPathSearchFuture
public @Nullable com.google.common.util.concurrent.ListenableFuture<?> getPathSearchFuture() -
isLastAutoJump
public boolean isLastAutoJump() -
getExpectedSegmentStart
-
getToDispatch
-
getLastFailedPathTime
public long getLastFailedPathTime() -
getFailedPathSearches
-