How da-maul/adventure-alex-tarek-morten works
This is a Java, text-based dungeon adventure. The workflow starts at the program entry point, initializes a room map, then accepts player commands to explore rooms, manage items, use light and teleport spells, and fight with weapons. The excerpts show the main control flow and core world model; several player and map relationships are also supported by the SOURCE INDEX. Feature nodes that share a source path represent distinct responsibilities within the same class.
Main entry points: ConsoleUI.java Console Interface · Map.java Map Setup · Player.java Player State · Room.java Room State
Components 15
Game Runtime
- Program Entry
src/Main.java - Game Orchestrator
src/Adventure.java - Console Interface
src/ConsoleUI.java - Command Parsing
src/ConsoleUI.java - Parsed Commands
src/Command.java
Dungeon World
- Map Setup
src/Map.java - Room State
src/Room.java
Player Actions
- Player State
src/Player.java - Movement and Teleport
src/Player.java - Inventory and Items
src/Player.java - Eating and Combat
src/Player.java
Items and Gear
- Base Item
src/Item.java - Food Items
src/Food.java - Weapons
src/Weapon.java
Other components
- Player
Connections 24
- Player → Console Interface: enters commands
src/ConsoleUI.java - Program Entry → Game Orchestrator: starts game
src/Main.java - Game Orchestrator → Map Setup: initializes map
src/Adventure.java - Game Orchestrator → Console Interface: runs interface
src/Adventure.java - Console Interface → Command Parsing: parses input
src/ConsoleUI.java - Command Parsing → Parsed Commands: creates commands
src/ConsoleUI.java - Console Interface → Parsed Commands: dispatches commands
src/ConsoleUI.java - Console Interface → Map Setup: sets starting room
src/ConsoleUI.java - Map Setup → Room State: builds rooms
src/Map.java - Map Setup → Base Item: places items
src/Map.java - Map Setup → Food Items: creates food
src/Map.java - Map Setup → Weapons: creates weapons
src/Map.java - Console Interface → Player State: runs player actions
src/ConsoleUI.java - Player State → Room State: reads room state
src/Player.java - Player State → Movement and Teleport: delegates movement
src/Player.java - Player State → Inventory and Items: delegates item actions
src/Player.java - Player State → Eating and Combat: delegates combat
src/Player.java - Movement and Teleport → Room State: changes current room
src/Player.java - Inventory and Items → Room State: moves room items
src/Player.java - Inventory and Items → Base Item: searches items
src/Player.java - Eating and Combat → Food Items: applies food effect
src/Player.java - Eating and Combat → Weapons: uses equipped weapon
src/Player.java - Food Items → Base Item: extends item
src/Food.java - Weapons → Base Item: extends item
src/Weapon.java