Keith Solomon
39b15c35da
refactor: tighten useAbility and Scenario archetype lookup
...
Final-review-driven changes (Tasks 6/M1, I1 from the ledger):
- Drop the redundant abilities-list check in CombatEngine::useAbility.
By construction (Scenario::__construct enforces the allowlist), any
ability the unit 'knows' is also archetype-allowed; the second check
alone is sufficient and removes a dead code path.
- Update testUseAbilityRejectsAnAbilityTheArchetypeForbids to assert the
'Unit archetype forbids that ability.' message it actually exercises.
- Compute $template once in Scenario::__construct's per-unit loop and
drop the redundant catalog lookup on the next line.
2026-07-05 20:33:03 -05:00
Keith Solomon
6fffaa2306
feat: validate scenario deployment zones and objectives
2026-07-05 20:11:35 -05:00
Keith Solomon
84fb175c0c
feat: resolve objective control and objective victory
2026-07-05 20:06:27 -05:00
Keith Solomon and Keith Solomon
6befe7b3e2
feat: support curated abilities and objective victory
2026-07-05 19:49:06 -05:00
Keith Solomon
088e85c9b4
feat: model scenarios and start match snapshots
2026-07-05 19:27:22 -05:00
Keith Solomon
06632ff9b3
feat: model objectives, deployment zones, and victory conditions
2026-07-05 19:11:24 -05:00
Keith Solomon
e70b60696c
feat: track archetype, abilities, and buff on unit state
2026-07-05 19:05:03 -05:00
Keith Solomon
88149ab1cf
feat: catalog curated abilities and definitions
2026-07-05 18:47:20 -05:00
Keith Solomon
0ac8c06c5e
feat: catalog curated unit archetypes and templates
2026-07-05 18:41:53 -05:00
Keith Solomon
fef22d7b56
fix: guard invalid turn transitions
2026-07-04 16:07:36 -05:00
Keith Solomon
acfbbf4a91
feat: add alternating team turns
2026-07-04 16:02:49 -05:00
Keith Solomon
7588b304e1
refactor: reuse position distance for attacks
2026-07-04 15:58:29 -05:00
Keith Solomon
3c6359243a
feat: resolve attacks and elimination victory
2026-07-04 15:53:57 -05:00
Keith Solomon
3eba823e52
fix: enforce executable movement state
2026-07-04 15:47:29 -05:00
Keith Solomon
1550e2920b
feat: validate and resolve unit movement
2026-07-04 15:37:05 -05:00
Keith Solomon
5297b41208
fix: enforce immutable match state invariants
2026-07-04 15:33:05 -05:00
Keith Solomon
0c5e824942
feat: model immutable combat state
2026-07-04 15:23:00 -05:00
Keith Solomon
4421c5ae32
test: strengthen battlefield boundary coverage
2026-07-04 15:19:06 -05:00
Keith Solomon
b789f1b61f
fix: validate battlefield reachability inputs
2026-07-04 15:15:08 -05:00
Keith Solomon
189be5bc64
feat: model battlefield terrain and movement costs
2026-07-04 15:08:40 -05:00