mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-18 04:51:33 -07:00
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:
parent
fd5a649246
commit
a6b5abf271
10 changed files with 109 additions and 38 deletions
|
|
@ -93,6 +93,7 @@ private:
|
|||
bool spectatorNotificationsEnabled;
|
||||
bool buddyConnectNotificationsEnabled;
|
||||
bool doubleClickToPlay;
|
||||
bool clickPlaysAllSelected;
|
||||
bool playToStack;
|
||||
int startingHandSize;
|
||||
bool annotateTokens;
|
||||
|
|
@ -275,6 +276,10 @@ public:
|
|||
{
|
||||
return doubleClickToPlay;
|
||||
}
|
||||
bool getClickPlaysAllSelected() const
|
||||
{
|
||||
return clickPlaysAllSelected;
|
||||
}
|
||||
bool getPlayToStack() const
|
||||
{
|
||||
return playToStack;
|
||||
|
|
@ -572,6 +577,7 @@ public slots:
|
|||
void setSpectatorNotificationsEnabled(QT_STATE_CHANGED_T _spectatorNotificationsEnabled);
|
||||
void setBuddyConnectNotificationsEnabled(QT_STATE_CHANGED_T _buddyConnectNotificationsEnabled);
|
||||
void setDoubleClickToPlay(QT_STATE_CHANGED_T _doubleClickToPlay);
|
||||
void setClickPlaysAllSelected(QT_STATE_CHANGED_T _clickPlaysAllSelected);
|
||||
void setPlayToStack(QT_STATE_CHANGED_T _playToStack);
|
||||
void setStartingHandSize(int _startingHandSize);
|
||||
void setAnnotateTokens(QT_STATE_CHANGED_T _annotateTokens);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue