![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_menu.h>
Signals | |
| void | cardInfoRequested (const CardRef &cardRef) |
Public Member Functions | |
| CardMenu (PlayerGraphicsItem *player, const CardItem *card, bool shortcutsActive) | |
| void | removePlayer (PlayerLogic *playerToRemove) |
| void | createTableMenu (bool canModifyCard) |
| void | createStackMenu (bool canModifyCard) |
| void | createGraveyardOrExileMenu (bool canModifyCard) |
| void | createHandOrCustomZoneMenu (bool canModifyCard) |
| void | createZonelessMenu (bool canModifyCard) |
Public Attributes | |
| QMenu * | mCardCounters |
| QAction * | aPlay |
| QAction * | aPlayFacedown |
| QAction * | aRevealToAll |
| QAction * | aHide |
| QAction * | aClone |
| QAction * | aSelectAll |
| QAction * | aSelectRow |
| QAction * | aSelectColumn |
| QAction * | aDrawArrow |
| QAction * | aTap |
| QAction * | aDoesntUntap |
| QAction * | aFlip |
| QAction * | aPeek |
| QAction * | aAttach |
| QAction * | aUnattach |
| QAction * | aSetAnnotation |
| QAction * | aReduceLifeByPower |
| QList< QAction * > | aAddCounter |
| QList< QAction * > | aSetCounter |
| QList< QAction * > | aRemoveCounter |
Private Member Functions | |
| void | addRelatedCardActions () |
| void | retranslateUi () |
| void | initContextualPlayersMenu (QMenu *menu, QAction *allPlayersAction) |
| Populates the menu with an action for each active player. | |
| void | setShortcutsActive () |
| void | addRelatedCardView () |
Private Attributes | |
| PlayerGraphicsItem * | player |
| const CardItem * | card |
| QList< QPair< QString, int > > | playersInfo |
| bool | shortcutsActive |
|
explicit |
|
private |
|
private |
|
signal |
| void CardMenu::createGraveyardOrExileMenu | ( | bool | canModifyCard | ) |
| void CardMenu::createHandOrCustomZoneMenu | ( | bool | canModifyCard | ) |
| void CardMenu::createStackMenu | ( | bool | canModifyCard | ) |
| void CardMenu::createTableMenu | ( | bool | canModifyCard | ) |
| void CardMenu::createZonelessMenu | ( | bool | canModifyCard | ) |
|
private |
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.
| menu | The menu to add the player actions to. |
| allPlayersAction | The action for "all players". |
| void CardMenu::removePlayer | ( | PlayerLogic * | playerToRemove | ) |
|
private |
|
private |
| QList<QAction *> CardMenu::aAddCounter |
| QAction* CardMenu::aAttach |
| QAction* CardMenu::aClone |
| QAction * CardMenu::aDoesntUntap |
| QAction* CardMenu::aDrawArrow |
| QAction* CardMenu::aFlip |
| QAction* CardMenu::aHide |
| QAction * CardMenu::aPeek |
| QAction* CardMenu::aPlay |
| QAction * CardMenu::aPlayFacedown |
| QAction* CardMenu::aReduceLifeByPower |
| QList<QAction *> CardMenu::aRemoveCounter |
| QAction* CardMenu::aRevealToAll |
| QAction* CardMenu::aSelectAll |
| QAction * CardMenu::aSelectColumn |
| QAction * CardMenu::aSelectRow |
| QAction* CardMenu::aSetAnnotation |
| QList<QAction *> CardMenu::aSetCounter |
| QAction* CardMenu::aTap |
| QAction * CardMenu::aUnattach |
|
private |
| QMenu* CardMenu::mCardCounters |
|
private |
|
private |
|
private |