How farmisen/ultima3 works
LairWare’s Ultima III is a single-player Macintosh RPG remake. The player interacts through the Mac interface; gameplay spans overworld exploration, dungeon traversal, combat and spells, party/roster management, and map generation after the game is solved. The source also includes rendering, localization, audio, and preferences support. The README documents alternate graphics and other historical capabilities, but sampled excerpts do not expose the full application startup or the wiring for several subsystems, so those connections are left unverified.
Main entry points: UltimaMacIF.c Mac Interface · UltimaDngn.c Dungeon Logic · UltimaSpellCombat.c Combat and Spells · UltimaGraphics.c Graphics Engine
Components 20
Mac Interface
- Mac Interface
Sources/UltimaMacIF.c - Apple Events
Sources/UltimaAppleEvents.c - Preferences Dialog
Sources/PrefsDialog.m - Preferences Controller
Sources/PrefsDialogController.h - Carbon Compatibility
Sources/CarbonShunts.c
Gameplay Systems
- Game Orchestration
Sources/UltimaMain.c - Overworld Logic
Sources/UltimaMisc.c - Dungeon Logic
Sources/UltimaDngn.c - Combat and Spells
Sources/UltimaSpellCombat.c - Auto Combat
Sources/UltimaAutocombat.c
World and State
- Party Management
Sources/UltimaNew.c - Map Generation
Sources/UltimaNewMap.c - Game State
Sources/UltimaIncludes.h
Presentation and Settings
- Graphics Engine
Sources/UltimaGraphics.c - Game Text
Sources/UltimaText.c - Sound Playback
Sources/UltimaSound.m - Sound Assets
Resources/Sounds - Game Resources
Resources/English.lproj/Strings - Graphics Assets
Resources/Graphics
Other components
- Player
Connections 16
- Player → Mac Interface: interacts
- Mac Interface → Game Orchestration: dispatches
- Dungeon Logic → Combat and Spells: casts spells
Sources/UltimaDngn.c - Combat and Spells → Auto Combat: uses routines
Sources/UltimaSpellCombat.c - Combat and Spells → Dungeon Logic: updates dungeon
Sources/UltimaSpellCombat.c - Overworld Logic → Dungeon Logic: uses dungeon routines
Sources/UltimaMisc.c - Map Generation → Game State: updates state
- Party Management → Game State: updates state
- Dungeon Logic → Graphics Engine: draws dungeon
Sources/UltimaDngn.c - Mac Interface → Graphics Engine: uses graphics
Sources/UltimaMacIF.c - Preferences Dialog → Preferences Controller: configures
- Apple Events → Preferences Dialog: opens preferences
Sources/UltimaAppleEvents.c - Graphics Engine → Graphics Assets: uses alternate graphics
README.md - Sound Playback → Sound Assets: plays sounds
- Mac Interface → Carbon Compatibility: uses compatibility shims
Sources/UltimaMacIF.c - Game Resources → Overworld Logic: supplies game text