Commit f5209f2
committed
refactor: extract accessibility code into dedicated modules
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.1 parent 69e5632 commit f5209f2
11 files changed
Lines changed: 4245 additions & 1 deletion
File tree
- Source
- accessibility
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
0 commit comments