clicking to play can now play all selected (#5254)

* play action now applies to all selected cards

* check card zone before applying action

* fix bug with wonky play from deck

* refactor

* don't play card if it's already on table

* add new setting

* make actPlay and friends public

* implement thing

* refactor card_item
This commit is contained in:
RickyRister 2024-12-17 20:43:17 -08:00 committed by GitHub
parent fd5a649246
commit a6b5abf271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 109 additions and 38 deletions

View file

@ -162,6 +162,11 @@ public slots:
void actDrawCards();
void actUndoDraw();
void actMulligan();
void actPlay();
void actPlayFacedown();
void actHide();
void actMoveTopCardToPlay();
void actMoveTopCardToPlayFaceDown();
void actMoveTopCardToGrave();
@ -223,9 +228,6 @@ private slots:
void actFlowP();
void actFlowT();
void actSetAnnotation();
void actPlay();
void actHide();
void actPlayFacedown();
void actReveal(QAction *action);
void refreshShortcuts();
@ -323,6 +325,8 @@ private:
void addPlayerToList(QMenu *playerList, Player *player);
static void removePlayerFromList(QMenu *playerList, Player *player);
void playSelectedCards(bool faceDown = false);
QRectF bRect;
QMap<int, AbstractCounter *> counters;