Skip to content

Commit 4094e84

Browse files
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 4094e84

11 files changed

Lines changed: 4220 additions & 0 deletions

Source/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ include(functions/devilutionx_library)
33
include(functions/genex)
44

55
set(libdevilutionx_SRCS
6+
accessibility/location_speech.cpp
7+
accessibility/speech.cpp
8+
accessibility/town_navigation.cpp
9+
accessibility/tracker.cpp
610
appfat.cpp
711
automap.cpp
812
capture.cpp

0 commit comments

Comments
 (0)