Commit graph

6 commits

Author SHA1 Message Date
Matthew Mone
2c86d674f4 Add mission debrief and procedural mission generation features
- Introduce the MissionDebrief component to display after-action reports, including XP, rewards, and squad status.
- Implement the MissionGenerator class to create procedural side missions, enhancing replayability and resource management.
- Update mission schema to include mission objects for INTERACT objectives, improving mission complexity.
- Enhance GameLoop and MissionManager to support new mission features and interactions.
- Add tests for MissionDebrief and MissionGenerator to ensure functionality and integration within the game architecture.
2026-01-01 16:08:54 -08:00
Matthew Mone
8d2baacd5f Enhance GameLoop and GameStateManager for improved mission handling and health management
- Integrate narrative management into the GameLoop to handle mission completion and transitions, ensuring a smooth player experience.
- Implement health restoration logic for units based on roster data, preserving health values across missions.
- Update GameStateManager to clear active run data upon mission completion or failure, enhancing state management.
- Enhance Persistence layer with detailed logging for campaign data loading and saving, improving debugging and data integrity.
- Add event listeners in UI components to refresh mission data upon campaign changes, ensuring real-time updates for players.
2025-12-31 20:48:12 -08:00
Matthew Mone
cc38ee2808 Enhance GameStateManager and Persistence for campaign data management
- Introduce methods for loading and saving campaign data in GameStateManager, improving state management for player progress.
- Update Persistence layer to handle campaign data storage and retrieval, ensuring data integrity and availability.
- Add comprehensive tests for campaign data handling, including scenarios for loading existing data and managing data changes through events.
- Refactor related components to support new campaign features, enhancing overall game state management.
2025-12-31 15:06:07 -08:00
Matthew Mone
17590cdab0 Add combat state management to GameLoop and GameStateManager. Implement updateCombatState method to manage turn queue and active unit status during combat. Integrate combat state updates in GameViewport for UI responsiveness. Enhance type definitions for combat-related structures. 2025-12-22 14:34:43 -08:00
Matthew Mone
1b8775657f Refactor Persistence tests to improve mock handling of indexedDB. Introduce createMockRequest function for better request management and ensure proper triggering of success and upgrade events during database initialization. Update PostProcessing tests to clarify grid setup for floodFill functionality. 2025-12-22 14:25:32 -08:00
Matthew Mone
ebaa3006f9 Add type definitions for generation, grid, and manager components. Implement tests for BaseGenerator, CaveGenerator, RuinGenerator, and mission management. Enhance narrative handling in NarrativeManager and RosterManager. Ensure comprehensive coverage of game mechanics and state transitions. 2025-12-22 12:57:04 -08:00