Skip to content

Implement Resource entity for domain foundation - #6

Merged
CoderMariusz merged 1 commit into
mainfrom
claude/add-resource-entity-01NbW3EKsLMUAaAy26G2nsF6
Nov 23, 2025
Merged

CoderMariusz merged 1 commit into
mainfrom
claude/add-resource-entity-01NbW3EKsLMUAaAy26G2nsF6

Conversation

@CoderMariusz

Copy link
Copy Markdown
Owner

…Upgrades

Implements core business logic for resource collection and building upgrades:

  • CollectResourcesUseCase: Calculate and collect resources based on elapsed time with storage capacity limits
  • UpgradeBuildingUseCase: Validate and execute building upgrades with gold deduction
  • Result type for error handling with Success/Failure pattern
  • 50 comprehensive unit tests (25 + 25) covering all edge cases and validation logic

This enables the core gameplay loop of collecting resources from buildings and upgrading them for increased production.

…Upgrades

Implements core business logic for resource collection and building upgrades:
- CollectResourcesUseCase: Calculate and collect resources based on elapsed time with storage capacity limits
- UpgradeBuildingUseCase: Validate and execute building upgrades with gold deduction
- Result type for error handling with Success/Failure pattern
- 50 comprehensive unit tests (25 + 25) covering all edge cases and validation logic

This enables the core gameplay loop of collecting resources from buildings and upgrading them for increased production.
@CoderMariusz
CoderMariusz merged commit a4a472a into main Nov 23, 2025
1 check failed
CoderMariusz pushed a commit that referenced this pull request Dec 3, 2025
- Add smooth camera position animation (Issue #4)
- Create game_config.dart with centralized constants (Issue #5)
- Make Firebase optional with try-catch fallback (Issue #6)
- Update sprint-status.yaml to show Epic 0-1 as done (Issue #7)
- Extract magic numbers to constants in BuildingComponent (Issue #8)
- Update CLAUDE.md, FILE-MAP.md, EPIC-1-ISSUES.md

All critical bugs were already fixed in code (documentation was outdated).
Epic 1 is now production ready.
@CoderMariusz
CoderMariusz deleted the claude/add-resource-entity-01NbW3EKsLMUAaAy26G2nsF6 branch December 4, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants