How dionel-commits/oop_101_final_project works
Nest & Quest is a coding-quiz game with console and windowed interfaces. Players choose unlocked missions, answer progressively harder questions, and earn score, coins, and eggs; eggs hatch into collectible pets that can be fed, while tasks and level-ups provide additional rewards. The graph includes the documented maps, shop, collection, and pet effects. Some UI and persistence links are supported by the source index or README rather than complete excerpts, so unsampled implementation details are not expanded.
Main entry points: GameGUI.java Windowed game · Player.java Player · Main.java Console game · Mission.java Mission progress
Components 19
Game entry
- Console game
src/Main.java
Missions and tasks
- Mission progress
src/model/Mission.java - Question types
src/model/Question.java - Difficulty scoring
src/model/Difficulty.java - Mission bank
src/data/QuestionBank.java - Advanced missions
src/data/AdvancedMissions.java - Tasks and claims
src/model/Task.java - Task catalog
src/data/TaskBank.java
Player progression
- Player
src/model/Player.java - Egg rewards
src/model/Reward.java - Pets and feeding
src/model/Pet.java - Rarity and shop prices
src/model/Rarity.java - Treats
src/model/Treat.java
Game interface
- Windowed game
src/ui/GameGUI.java - Egg roller
src/ui/EggRoll.java - Pet effects
src/ui/PetEffects.java
Persistence and assets
- Save manager
src/data/SaveManager.java - Asset and save paths
src/data/AppPaths.java
Other components
- Player
Connections 26
- Player → Console game: starts console
- Player → Windowed game: starts window
- Console game → Mission bank: loads missions
src/Main.java - Console game → Mission progress: plays mission
src/Main.java - Console game → Player: updates progress
src/Main.java - Console game → Windowed game: launches
src/Main.java - Console game → Save manager: saves progress
src/Main.java - Mission bank → Advanced missions: adds missions
src/data/QuestionBank.java - Mission progress → Question types: checks answers
src/model/Mission.java - Question types → Difficulty scoring: gets points
src/model/Question.java - Player → Mission progress: awards completion
src/model/Player.java - Player → Egg rewards: generates eggs
src/model/Player.java - Egg rewards → Rarity and shop prices: rolls rarity
src/model/Reward.java - Player → Pets and feeding: feeds pet
src/model/Player.java - Pets and feeding → Treats: uses treat XP
src/model/Pet.java - Player → Tasks and claims: claims task
src/model/Player.java - Task catalog → Tasks and claims: creates tasks
src/data/TaskBank.java - Windowed game → Mission bank: loads missions
src/ui/GameGUI.java - Windowed game → Task catalog: loads tasks
src/ui/GameGUI.java - Windowed game → Player: handles gameplay
src/ui/GameGUI.java - Windowed game → Save manager: saves changes
src/ui/GameGUI.java - Windowed game → Egg roller: opens egg roller
src/ui/EggRoll.java - Windowed game → Pet effects: starts pet effects
src/ui/GameGUI.java - Windowed game → Rarity and shop prices: shows egg shop
src/ui/GameGUI.java - Windowed game → Player: shows maps
src/ui/GameGUI.java - Save manager → Asset and save paths: uses save path
src/data/SaveManager.java