From 96b4628510e603b27ab875a8fcc900fb97a0b761 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 9 Nov 2025 01:56:51 -0800 Subject: [PATCH] add docs --- cockatrice/src/game/player/menu/card_menu.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cockatrice/src/game/player/menu/card_menu.cpp b/cockatrice/src/game/player/menu/card_menu.cpp index d4d0e9230..ddf0a55f3 100644 --- a/cockatrice/src/game/player/menu/card_menu.cpp +++ b/cockatrice/src/game/player/menu/card_menu.cpp @@ -303,6 +303,15 @@ void CardMenu::createHandOrCustomZoneMenu() } } +/** + * @brief Populates the menu with an action for each active player. + * + * The "all players" action is created separately, so it has to be passed into this function. + * It will be put at the top of the menu. + * + * @param menu The menu to add the player actions to. + * @param allPlayersAction The action for "all players". + */ void CardMenu::initContextualPlayersMenu(QMenu *menu, QAction *allPlayersAction) { allPlayersAction->setData(-1);