mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 12:03:25 -08:00
[Refactor] Move card selection actions to GameScene and p/t parsing to CardState (#7426)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
c9853734ad
commit
4879ddbd0f
10 changed files with 121 additions and 116 deletions
|
|
@ -113,6 +113,15 @@ public:
|
|||
/** @brief Gets all selected CardItems. */
|
||||
QList<CardItem *> selectedCards() const;
|
||||
|
||||
/** @brief Selects every card sharing the zone of @p card. */
|
||||
void selectAllInZone(const CardItem *card);
|
||||
|
||||
/** @brief Selects the cards laid out in the same visual row as @p card. */
|
||||
void selectSameRow(const CardItem *card);
|
||||
|
||||
/** @brief Selects the cards laid out in the same visual column as @p card. */
|
||||
void selectSameColumn(const CardItem *card);
|
||||
|
||||
/** @brief Card the currently open context menu targets, or null. */
|
||||
CardItem *getActiveCard() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue