Skip to content

refactor: extract accessibility code into dedicated modules#8486

Open
yuripourre wants to merge 2 commits intodiasurgical:masterfrom
yuripourre:accessibility-prework
Open

refactor: extract accessibility code into dedicated modules#8486
yuripourre wants to merge 2 commits intodiasurgical:masterfrom
yuripourre:accessibility-prework

Conversation

@yuripourre
Copy link
Copy Markdown
Collaborator

Add Source/accessibility/ with four new modules:

  • speech.cpp/hpp: low-HP warnings, durability warnings, boss/monster HP announcements, interactable door announcements
  • tracker.cpp/hpp: TrackerTargetCategory, path-finding predicates, tracker navigation (cycle, navigate, auto-walk)
  • town_navigation.cpp/hpp: town NPC selection, listing, auto-walk
  • location_speech.cpp/hpp: BFS path-finding for speech, player status announcements, nearest-exit/stairs/portal speech, keyboard walk

Wire the new modules into diablo.cpp via four include lines. Declare CanPlayerTakeAction() and CancelAutoWalk() in diablo.h. Add the four new source files to Source/CMakeLists.txt.

@yuripourre yuripourre force-pushed the accessibility-prework branch 4 times, most recently from 2462066 to 96d5652 Compare March 1, 2026 01:54
Add Source/accessibility/ with four new modules:

- speech.cpp/hpp: low-HP warnings, durability warnings, boss/monster
  HP announcements, interactable door announcements
- tracker.cpp/hpp: TrackerTargetCategory, path-finding predicates,
  tracker navigation (cycle, navigate, auto-walk)
- town_navigation.cpp/hpp: town NPC selection, listing, auto-walk
- location_speech.cpp/hpp: BFS path-finding for speech, player status
  announcements, nearest-exit/stairs/portal speech, keyboard walk

Wire the new modules into diablo.cpp via four include lines.
Declare CanPlayerTakeAction() and CancelAutoWalk() in diablo.h.
Add the four new source files to Source/CMakeLists.txt.
@yuripourre yuripourre force-pushed the accessibility-prework branch 2 times, most recently from 5368dbb to b11ca43 Compare March 1, 2026 03:03
@yuripourre yuripourre force-pushed the accessibility-prework branch from b11ca43 to f62f809 Compare March 1, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant