Minecraft-Console-Client/MinecraftClient/Pathing/Moves
BruceChen d002930a6a pathing: unify jump moves into MoveJump + IMoveExpander
Replace seven hand-written IMove classes (MoveTraverse, MoveDiagonal,
MoveAscend, MoveDiagonalAscend, MoveDiagonalDescend, MoveParkour,
MoveSidewallParkour) with a single MoveJump driven by a JumpDescriptor
(XOffset, ZOffset, YDelta, JumpFlavor). JumpFeasibility is the single
source of truth for the physics/cost rules of every jump-family move.

A* no longer iterates a flat IMove[]. The Calculate loop now drives
an IMoveExpander[] that writes into a stackalloc Span<MoveNeighbor>,
eliminating per-iteration heap traffic. JumpExpander enumerates every
jump-family descriptor dynamically; LegacyMoveExpander wraps the
remaining dynamic-landing moves (MoveDescend, MoveSprintDescend,
MoveClimb, MoveFall) so callers that still pass a custom IMove[]
keep working.

Add two O(1) short-circuits at the top of JumpExpander.Expand:
- Hoist the per-node parkour preconditions (AllowParkour + CanSprint,
  standing block climbability, feet-liquid, head clearance at y+2)
  so ~170 SprintJump + Sidewall descriptors never call JumpFeasibility
  when the node cannot take off at all.
- Precompute an 8-way "first step has no floor" table indexed by
  (sign(dx), sign(dz)) so SprintJump descriptors in a direction that
  has a walkable floor underneath are dropped without Evaluate.
- Add a conservative "any cardinal wall at y or y+1" probe that skips
  all 112 Sidewall descriptors when no wall exists adjacent to the
  takeoff.

Move tests switch to the new MoveJump.* factory methods. Behavior is
verified by the existing test suite: the 21 pre-existing baseline
failures are preserved exactly, 0 regressions introduced.

Made-with: Cursor
2026-04-19 17:03:26 +00:00
..
Impl pathing: unify jump moves into MoveJump + IMoveExpander 2026-04-19 17:03:26 +00:00
IMove.cs feat: add Phase 1 core pathfinding architecture 2026-04-12 18:43:32 +00:00
IMoveExpander.cs pathing: unify jump moves into MoveJump + IMoveExpander 2026-04-19 17:03:26 +00:00
JumpDescriptor.cs pathing: unify jump moves into MoveJump + IMoveExpander 2026-04-19 17:03:26 +00:00
JumpExpander.cs pathing: unify jump moves into MoveJump + IMoveExpander 2026-04-19 17:03:26 +00:00
JumpFeasibility.cs pathing: unify jump moves into MoveJump + IMoveExpander 2026-04-19 17:03:26 +00:00
MoveHelper.cs feat: complete Phase 4 McClient integration for A* pathfinding 2026-04-12 18:43:32 +00:00
ParkourFeasibility.cs pathing: sidewall runup precondition via EntryPreparation 2026-04-19 17:03:03 +00:00