How kiquxd/forest-frontier works
Forest Frontier is a local, single-player exploration and settlement game. Players control individual residents to explore and gather, then develop towns through knowledge, production, trade, diplomacy, and construction; later they sail and dive for resources. The graph separates the interactive entry point, simulation and world state, settlement/economy systems, and presentation/persistence. README-described capabilities whose implementation was not sampled remain represented, but their internal call paths are not inferred.
Main entry points: main.cpp Game loop · gameplay.cpp Exploration and combat · render.cpp World and game UI · nation.cpp State and economy
Components 20
Game application
- Game loop
src/main.cpp
World and adventure
- World simulation
src/world.cpp - Exploration and combat
src/gameplay.cpp - Residents and progression
src/adventure.cpp - Vessel definitions
src/vessels.cpp
Town systems
- State and economy
src/nation.cpp - Town infrastructure
src/settlement_system.cpp
Interface and persistence
- Town management UI
src/nation_ui.cpp - Progress summaries
src/summary.cpp - Summary display
src/summary_render.cpp - World and game UI
src/render.cpp - Map layers
src/cartography.cpp - Map journal
src/map_journal.cpp - Saved map notes
src/atlas_notes.cpp - Save slots
src/save_slots.cpp - Start menu
src/menu.cpp - Settings UI
src/settings_ui.cpp - NPC dialogue
src/dialogue.cpp - Audio
src/audio.cpp
Other components
- Player
Connections 17
- Player → Game loop: plays
- Game loop → Exploration and combat: advances
src/main.cpp - Game loop → World simulation: requests paths
src/main.cpp - Game loop → State and economy: selects resident
src/main.cpp - Game loop → World and game UI: presents game
- Exploration and combat → World simulation: moves through
src/gameplay.cpp - Exploration and combat → Vessel definitions: uses vessel data
src/gameplay.cpp - Exploration and combat → Residents and progression: updates residents
src/gameplay.cpp - State and economy → Town infrastructure: uses infrastructure
src/nation.cpp - Town management UI → State and economy: manages towns
src/nation_ui.cpp - Summary display → Progress summaries: renders summaries
src/summary_render.cpp - World and game UI → Map layers: draws map layers
src/cartography.cpp - Map journal → Saved map notes: edits notes
src/map_journal.cpp - Start menu → Save slots: uses save slots
src/menu.cpp - Start menu → Settings UI: opens settings
src/menu.cpp - Player → NPC dialogue: talks to NPCs
- World and game UI → Audio: uses audio