Cockatrice/libcockatrice_network/libcockatrice/network/server/remote/game
Lukas Brübach 1c62588c38 PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor
- Add GameConfig struct consolidating 14 construction parameters
- Add strategy interfaces for deck validation, game lifecycle, and match results
- Add Server_MatchGameFactory abstract factory (forward-looking for tournaments)
- Replace 15-arg Server_Game constructor with (GameConfig, Server_Room*)
- Wire default strategies into Server_Game with lifecycle/match hooks
- Update server_protocolhandler to build GameConfig from protobuf
- Update reverse_card_move_test to use new constructor
- Update CMakeLists.txt with new headers

Took 7 minutes

Took 2 minutes
2026-07-29 09:20:36 +02:00
..
game_config.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_abstract_participant.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
server_abstract_participant.h [Server_AbstractParticipant] Rename bool getters (#6492) 2026-01-05 00:34:32 -05:00
server_abstract_player.cpp [Networking] Doxygen (#7030) 2026-07-27 11:27:00 +02: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 Unify counter clamp arithmetic into shared addClamped() helper (#7009) 2026-06-28 16:10:57 -07:00
server_counter.h Unify counter clamp arithmetic into shared addClamped() helper (#7009) 2026-06-28 16:10:57 -07:00
server_deck_validation_strategy.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_game.cpp PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_game.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_game_lifecycle_strategy.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_match_game_factory.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02:00
server_match_result_strategy.h PR 0: introduce GameConfig, strategy pattern, and refactor Server_Game constructor 2026-07-29 09:20:36 +02: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 Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
server_player.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_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