Cockatrice/tests/command_zone
DawnFire42 7a0a3ff9ac feat(command-zone): add commander tax counter system with tests
Implement CommanderTaxCounter - tracks casting cost increases for
commanders that have been cast multiple times.

Key components:
- CommanderTaxCounter: specialized counter with value clamping
- AbstractCounter modifications: support for counter ID system
- CounterGeneral/TranslateCounterName: UI integration for display

Design decisions:
- Counter values clamped to valid range (0 to max)
- Builds on counter_ids.h constants from commit 1
- Uses z_values.h from commit 4 for proper visual layering
- Counter visibility tied to zone state (hidden when zone hidden)

Test coverage:
- commander_tax_counter_test: verifies setValue clamping behavior
- counter_visibility_test: verifies visibility state transitions

Note: Tests include <climits> for INT_MIN usage (required on some compilers
like GCC on Debian 11 where INT_MIN is not transitively included).
2026-02-26 20:13:32 -05:00
..
mocks feat(command-zone): add logic layer with tests 2026-02-26 20:13:32 -05:00
CMakeLists.txt feat(command-zone): add commander tax counter system with tests 2026-02-26 20:13:32 -05:00
command_zone_logic_test.cpp feat(command-zone): add logic layer with tests 2026-02-26 20:13:32 -05:00
command_zone_state_test.cpp feat(command-zone): add state machine with tests 2026-02-26 20:13:32 -05:00
commander_tax_counter_test.cpp feat(command-zone): add commander tax counter system with tests 2026-02-26 20:13:32 -05:00
counter_visibility_test.cpp feat(command-zone): add commander tax counter system with tests 2026-02-26 20:13:32 -05:00