Cockatrice/libcockatrice_network/libcockatrice/network/server/remote/game
DawnFire42 bc09a19b50
Wire command zone menu, harden counter command handling, and expand tests
- Connect aMoveToCommandZone to cmMoveToCommandZone; the menu item was
    added, shown, and shortcut-bound but never wired, so it did nothing
  - Extract evaluateModifyCounter() and route cmdIncCounter/cmdSetCounter
    through it, replacing isCommandZoneCounterBlocked; reject inc/set on
    an inactive tax counter so a hidden counter cannot accumulate value
  - Reject reserved tax counter names in cmdCreateCounter to prevent a
    client from spoofing a system tax counter via a user-created counter
  - Route AbstractCounter::valueChanged through the virtual setValue() so
    CommanderTaxCounter clamps and refreshes its tooltip on value changes
  - Deduplicate actPlayAndIncreaseTax/actPlayAndIncreasePartnerTax into a
    single playAndIncreaseTax(counterId) helper
  - Move MINIMUM_STACKING_HEIGHT from CommandZone to the PlayerGraphicsItem
    layout code, its only consumer
  - Remove unused AbstractCounter forward declaration from player_logic.h
  - Add EvaluateModifyCounter tests and PartnerTax cases for
    evaluateSetCounterActive
  - Pin the FirstUserId floor in new_counter_id_test using ids 3 and 5 so
    a naive "highest id + 1" regression fails the test
2026-06-30 09:30:29 -04:00
..
server_abstract_participant.cpp [Game] Add Command Zone support with commander tax tracking 2026-06-30 09:30:13 -04:00
server_abstract_participant.h [Game] Add Command Zone support with commander tax tracking 2026-06-30 09:30:13 -04:00
server_abstract_player.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
server_abstract_player.h [Game] [Arrows] Use arrowData/registry and generate unique server-side ids (#6973) 2026-06-07 21:11:02 +02:00
server_arrow.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
server_arrow.h add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
server_arrowtarget.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_arrowtarget.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_card.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
server_card.h Unify counter clamp arithmetic into shared addClamped() helper (#7009) 2026-06-28 16:10:57 -07:00
server_cardzone.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
server_cardzone.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
server_counter.cpp [Game] Add Command Zone support with commander tax tracking 2026-06-30 09:30:13 -04:00
server_counter.h fix clamping 2026-06-30 09:30:29 -04:00
server_game.cpp [Game] Add Command Zone support with commander tax tracking 2026-06-30 09:30:13 -04:00
server_game.h [Game] Add Command Zone support with commander tax tracking 2026-06-30 09:30:13 -04:00
server_move_card_struct.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_player.cpp Wire command zone menu, harden counter command handling, and expand tests 2026-06-30 09:30:29 -04:00
server_player.h Wire command zone menu, harden counter command handling, and expand tests 2026-06-30 09:30:29 -04:00
server_spectator.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_spectator.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00