Cockatrice/cockatrice/src/game/board
DawnFire42 70b41c2095
refactor: extract AbstractPlayerComponent interface for polymorphic player component management. (#6696)
Non-QObject polymorphic interface with setShortcutsActive(), setShortcutsInactive(), and retranslateUi(). Uses regular multiple inheritance to avoid diamond inheritance with Qt's MOC.

All zone menus, SayMenu, and AbstractCounter implement this interface. PlayerMenu manages them via a managedComponents list with two template helpers (addManagedMenu/registerManagedComponent), replacing individual if-guarded lifecycle calls with a single polymorphic loop.

SayMenu now owns its shortcut and translation lifecycle instead of having PlayerMenu manage its title and shortcuts externally.
Counters are iterated via Player::getCounters() rather than managedComponents to avoid duplicating the authoritative owner's map.
2026-03-24 12:31:34 -07:00
..
abstract_card_drag_item.cpp refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
abstract_card_drag_item.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
abstract_card_item.cpp refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
abstract_card_item.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
abstract_counter.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
abstract_counter.h refactor: extract AbstractPlayerComponent interface for polymorphic player component management. (#6696) 2026-03-24 12:31:34 -07:00
arrow_item.cpp Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
arrow_item.h add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
arrow_target.cpp game: Automatic update of arrow position (#5729) 2025-03-16 22:58:06 +00:00
arrow_target.h [Refactor] Move AbstractGraphicsItem and GraphicsItemType to game_graphics/board (#6342) 2025-11-20 12:52:14 +01:00
card_drag_item.cpp [Game] Refactor CardDragItem faceDown logic (#6552) 2026-03-03 23:18:21 +01:00
card_drag_item.h [Game] Refactor CardDragItem faceDown logic (#6552) 2026-03-03 23:18:21 +01:00
card_item.cpp refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
card_item.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
card_list.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
card_list.h [Documentation] Sort *every* file into a doxygen group. (#6198) 2025-09-30 12:13:32 +02:00
counter_general.cpp [Refactor] Move AbstractGraphicsItem and GraphicsItemType to game_graphics/board (#6342) 2025-11-20 12:52:14 +01:00
counter_general.h [Documentation] Sort *every* file into a doxygen group. (#6198) 2025-09-30 12:13:32 +02:00
translate_counter_name.cpp squash #6158 (#6160) 2025-09-20 14:35:52 +02:00
translate_counter_name.h [Documentation] Sort *every* file into a doxygen group. (#6198) 2025-09-30 12:13:32 +02:00