Skip to content

[Domain] Reroute agents when exits are blocked#161

Closed
95x8x9 wants to merge 1 commit into
codex/block-doorfrom
codex/exit-reroute
Closed

[Domain] Reroute agents when exits are blocked#161
95x8x9 wants to merge 1 commit into
codex/block-doorfrom
codex/exit-reroute

Conversation

@95x8x9
Copy link
Copy Markdown
Collaborator

@95x8x9 95x8x9 commented Apr 30, 2026

Summary

  • Switches exit selection to a weighted shortest-path (nearest reachable exit) instead of BFS hops.
  • Replans full exit routes when the next planned doorway/connection becomes blocked.
  • Adds per-agent replanning cooldowns to prevent per-frame pathfinding spikes when no exit is available.

Related Issue

Area

  • Engine
  • Domain
  • Application
  • Docs
  • Build
  • Analysis
  • Chore

Architecture Check

  • I kept the dependency direction application -> domain -> engine.
  • I did not add Qt UI code to src/domain.
  • I did not add domain or application dependencies to src/engine.
  • I used src/ as the include root.

Verification

  • cmake --preset windows-debug
  • cmake --build --preset build-debug
  • ctest --preset test-debug
  • Not run (reason below)

Risks / Follow-up

  • Cooldown values may need tuning based on larger scenarios; follow-up can add a scenario-level config if needed.

@95x8x9 95x8x9 requested a review from learncold as a code owner April 30, 2026 12:58
@learncold learncold closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants