mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 03:23:24 -08:00
The second PlayerLogic constructor taking a custom PlayerEventHandler was UB (converting this to PlayerLogic* in the base initializer, and connecting a freshly-built handler against a not-yet-constructed object), and its abstract extension surface — virtual initializeZones, virtual getPlayerEventHandler, virtual processGameEvent, protected player member — has no subclass consumer in the stack. Revert to the single primary constructor. Also: - Drop the unused GameMetaInfo::setIsTournament setter. Tournament status is authoritative from Event_GameJoined's ServerInfo_Game; the redundant is_tournament field on Event_GameStateChanged is removed in [Protocol]. - Gate the parent-game routing on has_parent_game_id() instead of comparing the proto default, so a future drop of the default keeps working. |
||
|---|---|---|
| .. | ||
| card_menu_action_type.h | ||
| card_move_request.h | ||
| event_processing_options.h | ||
| move_top_cards_until_options.h | ||
| player_actions.cpp | ||
| player_actions.h | ||
| player_event_handler.cpp | ||
| player_event_handler.h | ||
| player_info.cpp | ||
| player_info.h | ||
| player_logic.cpp | ||
| player_logic.h | ||
| player_manager.cpp | ||
| player_manager.h | ||
| token_info.h | ||