Cockatrice 2026-06-27-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PlayerActions Class Reference

#include <player_actions.h>

Inheritance diagram for PlayerActions:
[legend]
Collaboration diagram for PlayerActions:
[legend]

Public Types

enum  CardsToReveal { RANDOM_CARD_FROM_ZONE = -2 }

Public Slots

void setLastToken (CardInfoPtr cardInfo)
void setLastTokenInfo (CardInfoPtr cardInfo)
void playCard (CardItem *c, bool faceDown)
void playCardToTable (const CardItem *c, bool faceDown)
void actUntapAll ()
void actRequestRollDieDialog ()
void actRollDie (int sides, int count)
void actFlipCoin ()
void actRequestCreateTokenDialog (const QStringList &predefinedTokens)
void actCreateToken (TokenInfo tokenToCreate)
void actCreateAnotherToken ()
void actRequestCreateRelatedFromRelationDialog (const CardItem *sourceCard, const CardRelation *cardRelation)
bool createRelatedFromRelation (const CardItem *sourceCard, const CardRelation *cardRelation, int variableCount)
void onRelatedCardCreated (const CardItem *sourceCard, const CardRelation *cardRelation)
void setLastRelatedCreationSucceeded (bool succeeded)
void actShuffle ()
void actRequestShuffleTopDialog ()
void actShuffleTop (int number)
void actRequestShuffleBottomDialog ()
void actShuffleBottom (int number)
void actDrawCard ()
void actRequestDrawCardsDialog ()
void actDrawCards (int number)
void actUndoDraw ()
void actRequestMulliganDialog ()
void actMulligan (int number)
void actMulliganSameSize ()
void actMulliganMinusOne ()
void doMulligan (int number)
void actPlay (QList< CardItem * > selectedCards)
void actPlayFacedown (QList< CardItem * > selectedCards)
void actHide (QList< CardItem * > selectedCards)
void actMoveTopCardToPlay ()
void actMoveTopCardToPlayFaceDown ()
void actMoveTopCardToGrave ()
void actMoveTopCardToExile ()
void actMoveTopCardsToGrave ()
void actMoveTopCardsToGraveFaceDown ()
void actMoveTopCardsToExile ()
void actMoveTopCardsToExileFaceDown ()
void actRequestMoveTopCardsUntilDialog ()
void moveTopCardsUntil (const QString &expr, MoveTopCardsUntilOptions options)
void actMoveTopCardToBottom ()
void actRequestMoveTopCardsToDialog (const QString &targetZone, const QString &zoneDisplayName, bool faceDown)
void moveTopCardsTo (int number, const QString &targetZone, bool faceDown)
void actDrawBottomCard ()
void actRequestDrawBottomCardsDialog ()
void actDrawBottomCards (int number)
void actMoveBottomCardToPlay ()
void actMoveBottomCardToPlayFaceDown ()
void actMoveBottomCardToGrave ()
void actMoveBottomCardToExile ()
void actMoveBottomCardsToGrave ()
void actMoveBottomCardsToGraveFaceDown ()
void actMoveBottomCardsToExile ()
void actMoveBottomCardsToExileFaceDown ()
void actMoveBottomCardToTop ()
void actRequestMoveBottomCardsToDialog (const QString &targetZone, const QString &zoneDisplayName, bool faceDown)
void moveBottomCardsTo (int number, const QString &targetZone, bool faceDown)
void actSelectAll ()
void actSelectRow ()
void actSelectColumn ()
void actViewLibrary ()
void actViewHand ()
void actRequestViewTopCardsDialog ()
void actViewTopCards (int number)
void actRequestViewBottomCardsDialog ()
void actViewBottomCards (int number)
void actAlwaysRevealTopCard (bool alwaysRevealTopCard)
void actAlwaysLookAtTopCard (bool alwaysRevealTopCard)
void actViewGraveyard ()
void actLendLibrary (int lendToPlayerId)
void actRevealTopCards (int revealToPlayerId, int amount)
void actRevealRandomGraveyardCard (int revealToPlayerId)
void actViewRfg ()
void actViewSideboard ()
void actSayMessage ()
void actOpenDeckInDeckEditor ()
void actCreatePredefinedToken ()
void actCreateRelatedCard ()
void actCreateAllRelatedCards ()
void actRequestMoveCardXCardsFromTopDialog ()
void actMoveCardXCardsFromTop (QList< CardItem * > selectedCards, int number)
void actRemoveCardCounter (QList< CardItem * > selectedCards, int counterId)
void actAddCardCounter (QList< CardItem * > selectedCards, int counterId)
void actRequestSetCardCounterDialog (QList< CardItem * > selectedCards, int counterId)
void actSetCardCounter (QList< CardItem * > selectedCards, int counterId, const QString &counterValue)
void actIncrementAllCardCounters (QList< CardItem * > cardsToUpdate)
void actAttach ()
void actUnattach (QList< CardItem * > selectedCards)
void actDrawArrow ()
void actIncPT (QList< CardItem * > selectedCards, int deltaP, int deltaT)
void actResetPT (QList< CardItem * > selectedCards)
void actRequestSetPTDialog (QList< CardItem * > selectedCards)
void actSetPT (QList< CardItem * > selectedCards, const QString &pt)
void actIncP (QList< CardItem * > selectedCards)
void actDecP (QList< CardItem * > selectedCards)
void actIncT (QList< CardItem * > selectedCards)
void actDecT (QList< CardItem * > selectedCards)
void actIncPT (QList< CardItem * > selectedCards)
void actDecPT (QList< CardItem * > selectedCards)
void actFlowP (QList< CardItem * > selectedCards)
void actFlowT (QList< CardItem * > selectedCards)
void actReduceLifeByPower (QList< CardItem * > selectedCards)
void actRequestSetAnnotationDialog (QList< CardItem * > selectedCards)
void actSetAnnotation (QList< CardItem * > selectedCards, const QString &annotation)
void actReveal (QList< CardItem * > selectedCards, QAction *action)
void actRevealHand (int revealToPlayerId)
void actRevealRandomHandCard (int revealToPlayerId)
void actRevealLibrary (int revealToPlayerId)
void actSortHand ()
void cardMenuAction (QList< CardItem * > selectedCards, CardMenuActionType type)

Signals

void requestViewTopCardsDialog (int defaultNumberTopCards, int deckSize)
void requestViewBottomCardsDialog (int defaultNumberBottomCards, int deckSize)
void requestShuffleTopDialog (int defaultNumberTopCards, int maxCards)
void requestShuffleBottomDialog (int defaultNumberBottomCards, int maxCards)
void requestMulliganDialog (int startSize, int handSize, int deckSize)
void requestDrawCardsDialog (int defaultNumberTopCards, int deckSize)
void requestMoveTopCardsToDialog (int defaultNumberTopCards, int maxCards, const QString &targetZone, const QString &zoneDisplayName, bool faceDown)
void requestMoveTopCardsUntilDialog (MoveTopCardsUntilOptions options)
void requestMoveBottomCardsToDialog (int defaultNumberBottomCards, int maxCards, const QString &targetZone, const QString &zoneDisplayName, bool faceDown)
void requestDrawBottomCardsDialog (int defaultNumberBottomCards, int maxCards)
void requestRollDieDialog ()
void requestCreateTokenDialog (const QStringList &predefinedTokens)
void requestCreateRelatedFromRelationDialog (const CardItem *sourceCard, const CardRelation *cardRelation)
void requestMoveCardXCardsFromTopDialog (int defaultNumberTopCardsToPlaceBelow, int deckSize)
void requestSetPTDialog (const QString &oldPT)
void requestSetAnnotationDialog (const QString &oldAnnotation)
void requestSetCardCounterDialog (int counterId, const QString &oldValueForDlg)
void requestZoneViewToggle (const QString &zoneName, int numberCards, bool isReversed=false)
void requestSortHand (const QList< CardList::SortOption > &options)
void requestEnableAndSetCreateAnotherTokenAction (const QString &lastTokenName)
void requestSetLastToken (CardInfoPtr lastToken)

Public Member Functions

 PlayerActions (PlayerLogic *player)
void sendGameCommand (PendingCommand *pend)
void sendGameCommand (const google::protobuf::Message &command)
PendingCommandprepareGameCommand (const ::google::protobuf::Message &cmd)
PendingCommandprepareGameCommand (const QList< const ::google::protobuf::Message * > &cmdList)
void moveOneCardUntil (CardItem *card)
void stopMoveTopCardsUntil ()
 Immediately stops any ongoing play top card to stack until... process, resetting all variables involved.
bool isMovingCardsUntil () const

Private Member Functions

void createCard (const CardItem *sourceCard, const QString &dbCardName, CardRelationType attach=CardRelationType::DoesNotAttach, bool persistent=false)
void playSelectedCards (QList< CardItem * > selectedCards, bool faceDown=false)
void cmdSetTopCard (Command_MoveCard &cmd)
void cmdSetBottomCard (Command_MoveCard &cmd)
void offsetCardCounter (QList< CardItem * > selectedCards, int counterId, int offset)

Private Attributes

PlayerLogicplayer
int defaultNumberTopCards = 1
int defaultNumberTopCardsToPlaceBelow = 1
int defaultNumberBottomCards = 1
int defaultNumberDieRoll = 20
TokenInfo lastTokenInfo
int lastTokenTableRow
bool movingCardsUntil
QTimer * moveTopCardTimer
FilterString movingCardsUntilFilter
int movingCardsUntilCounter = 0
MoveTopCardsUntilOptions movingCardsUntilOptions
bool lastRelatedCreationSucceeded = false

Member Enumeration Documentation

◆ CardsToReveal

Enumerator
RANDOM_CARD_FROM_ZONE 

Constructor & Destructor Documentation

◆ PlayerActions()

PlayerActions::PlayerActions ( PlayerLogic * player)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actAddCardCounter

void PlayerActions::actAddCardCounter ( QList< CardItem * > selectedCards,
int counterId )
slot
Here is the call graph for this function:

◆ actAlwaysLookAtTopCard

void PlayerActions::actAlwaysLookAtTopCard ( bool alwaysRevealTopCard)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actAlwaysRevealTopCard

void PlayerActions::actAlwaysRevealTopCard ( bool alwaysRevealTopCard)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actAttach

void PlayerActions::actAttach ( )
slot
Here is the caller graph for this function:

◆ actCreateAllRelatedCards

void PlayerActions::actCreateAllRelatedCards ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actCreateAnotherToken

void PlayerActions::actCreateAnotherToken ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actCreatePredefinedToken

void PlayerActions::actCreatePredefinedToken ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actCreateRelatedCard

void PlayerActions::actCreateRelatedCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actCreateToken

void PlayerActions::actCreateToken ( TokenInfo tokenToCreate)
slot
Here is the call graph for this function:

◆ actDecP

void PlayerActions::actDecP ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDecPT

void PlayerActions::actDecPT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDecT

void PlayerActions::actDecT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDrawArrow

void PlayerActions::actDrawArrow ( )
slot
Here is the caller graph for this function:

◆ actDrawBottomCard

void PlayerActions::actDrawBottomCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDrawBottomCards

void PlayerActions::actDrawBottomCards ( int number)
slot
Here is the call graph for this function:

◆ actDrawCard

void PlayerActions::actDrawCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDrawCards

void PlayerActions::actDrawCards ( int number)
slot
Here is the call graph for this function:

◆ actFlipCoin

void PlayerActions::actFlipCoin ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actFlowP

void PlayerActions::actFlowP ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actFlowT

void PlayerActions::actFlowT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actHide

void PlayerActions::actHide ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actIncP

void PlayerActions::actIncP ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actIncPT [1/2]

void PlayerActions::actIncPT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:

◆ actIncPT [2/2]

void PlayerActions::actIncPT ( QList< CardItem * > selectedCards,
int deltaP,
int deltaT )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actIncrementAllCardCounters

void PlayerActions::actIncrementAllCardCounters ( QList< CardItem * > cardsToUpdate)
slot
Here is the call graph for this function:

◆ actIncT

void PlayerActions::actIncT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actLendLibrary

void PlayerActions::actLendLibrary ( int lendToPlayerId)
slot
Here is the call graph for this function:

◆ actMoveBottomCardsToExile

void PlayerActions::actMoveBottomCardsToExile ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardsToExileFaceDown

void PlayerActions::actMoveBottomCardsToExileFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardsToGrave

void PlayerActions::actMoveBottomCardsToGrave ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardsToGraveFaceDown

void PlayerActions::actMoveBottomCardsToGraveFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardToExile

void PlayerActions::actMoveBottomCardToExile ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardToGrave

void PlayerActions::actMoveBottomCardToGrave ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardToPlay

void PlayerActions::actMoveBottomCardToPlay ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardToPlayFaceDown

void PlayerActions::actMoveBottomCardToPlayFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveBottomCardToTop

void PlayerActions::actMoveBottomCardToTop ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveCardXCardsFromTop

void PlayerActions::actMoveCardXCardsFromTop ( QList< CardItem * > selectedCards,
int number )
slot
Here is the call graph for this function:

◆ actMoveTopCardsToExile

void PlayerActions::actMoveTopCardsToExile ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardsToExileFaceDown

void PlayerActions::actMoveTopCardsToExileFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardsToGrave

void PlayerActions::actMoveTopCardsToGrave ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardsToGraveFaceDown

void PlayerActions::actMoveTopCardsToGraveFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardToBottom

void PlayerActions::actMoveTopCardToBottom ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardToExile

void PlayerActions::actMoveTopCardToExile ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardToGrave

void PlayerActions::actMoveTopCardToGrave ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardToPlay

void PlayerActions::actMoveTopCardToPlay ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMoveTopCardToPlayFaceDown

void PlayerActions::actMoveTopCardToPlayFaceDown ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMulligan

void PlayerActions::actMulligan ( int number)
slot
Here is the call graph for this function:

◆ actMulliganMinusOne

void PlayerActions::actMulliganMinusOne ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actMulliganSameSize

void PlayerActions::actMulliganSameSize ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actOpenDeckInDeckEditor

void PlayerActions::actOpenDeckInDeckEditor ( )
slot
Here is the caller graph for this function:

◆ actPlay

void PlayerActions::actPlay ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actPlayFacedown

void PlayerActions::actPlayFacedown ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actReduceLifeByPower

void PlayerActions::actReduceLifeByPower ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:

◆ actRemoveCardCounter

void PlayerActions::actRemoveCardCounter ( QList< CardItem * > selectedCards,
int counterId )
slot
Here is the call graph for this function:

◆ actRequestCreateRelatedFromRelationDialog

void PlayerActions::actRequestCreateRelatedFromRelationDialog ( const CardItem * sourceCard,
const CardRelation * cardRelation )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestCreateTokenDialog

void PlayerActions::actRequestCreateTokenDialog ( const QStringList & predefinedTokens)
slot
Here is the call graph for this function:

◆ actRequestDrawBottomCardsDialog

void PlayerActions::actRequestDrawBottomCardsDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestDrawCardsDialog

void PlayerActions::actRequestDrawCardsDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestMoveBottomCardsToDialog

void PlayerActions::actRequestMoveBottomCardsToDialog ( const QString & targetZone,
const QString & zoneDisplayName,
bool faceDown )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestMoveCardXCardsFromTopDialog

void PlayerActions::actRequestMoveCardXCardsFromTopDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestMoveTopCardsToDialog

void PlayerActions::actRequestMoveTopCardsToDialog ( const QString & targetZone,
const QString & zoneDisplayName,
bool faceDown )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestMoveTopCardsUntilDialog

void PlayerActions::actRequestMoveTopCardsUntilDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestMulliganDialog

void PlayerActions::actRequestMulliganDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestRollDieDialog

void PlayerActions::actRequestRollDieDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestSetAnnotationDialog

void PlayerActions::actRequestSetAnnotationDialog ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:

◆ actRequestSetCardCounterDialog

void PlayerActions::actRequestSetCardCounterDialog ( QList< CardItem * > selectedCards,
int counterId )
slot
Here is the call graph for this function:

◆ actRequestSetPTDialog

void PlayerActions::actRequestSetPTDialog ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestShuffleBottomDialog

void PlayerActions::actRequestShuffleBottomDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestShuffleTopDialog

void PlayerActions::actRequestShuffleTopDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestViewBottomCardsDialog

void PlayerActions::actRequestViewBottomCardsDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRequestViewTopCardsDialog

void PlayerActions::actRequestViewTopCardsDialog ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actResetPT

void PlayerActions::actResetPT ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actReveal

void PlayerActions::actReveal ( QList< CardItem * > selectedCards,
QAction * action )
slot
Here is the call graph for this function:

◆ actRevealHand

void PlayerActions::actRevealHand ( int revealToPlayerId)
slot
Here is the call graph for this function:

◆ actRevealLibrary

void PlayerActions::actRevealLibrary ( int revealToPlayerId)
slot
Here is the call graph for this function:

◆ actRevealRandomGraveyardCard

void PlayerActions::actRevealRandomGraveyardCard ( int revealToPlayerId)
slot
Here is the call graph for this function:

◆ actRevealRandomHandCard

void PlayerActions::actRevealRandomHandCard ( int revealToPlayerId)
slot
Here is the call graph for this function:

◆ actRevealTopCards

void PlayerActions::actRevealTopCards ( int revealToPlayerId,
int amount )
slot
Here is the call graph for this function:

◆ actRollDie

void PlayerActions::actRollDie ( int sides,
int count )
slot
Here is the call graph for this function:

◆ actSayMessage

void PlayerActions::actSayMessage ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSelectAll

void PlayerActions::actSelectAll ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSelectColumn

void PlayerActions::actSelectColumn ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSelectRow

void PlayerActions::actSelectRow ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSetAnnotation

void PlayerActions::actSetAnnotation ( QList< CardItem * > selectedCards,
const QString & annotation )
slot
Here is the call graph for this function:

◆ actSetCardCounter

void PlayerActions::actSetCardCounter ( QList< CardItem * > selectedCards,
int counterId,
const QString & counterValue )
slot
Here is the call graph for this function:

◆ actSetPT

void PlayerActions::actSetPT ( QList< CardItem * > selectedCards,
const QString & pt )
slot
Here is the call graph for this function:

◆ actShuffle

void PlayerActions::actShuffle ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actShuffleBottom

void PlayerActions::actShuffleBottom ( int number)
slot
Here is the call graph for this function:

◆ actShuffleTop

void PlayerActions::actShuffleTop ( int number)
slot
Here is the call graph for this function:

◆ actSortHand

void PlayerActions::actSortHand ( )
slot
Here is the call graph for this function:

◆ actUnattach

void PlayerActions::actUnattach ( QList< CardItem * > selectedCards)
slot
Here is the call graph for this function:

◆ actUndoDraw

void PlayerActions::actUndoDraw ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actUntapAll

void PlayerActions::actUntapAll ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actViewBottomCards

void PlayerActions::actViewBottomCards ( int number)
slot
Here is the call graph for this function:

◆ actViewGraveyard

void PlayerActions::actViewGraveyard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actViewHand

void PlayerActions::actViewHand ( )
slot
Here is the call graph for this function:

◆ actViewLibrary

void PlayerActions::actViewLibrary ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actViewRfg

void PlayerActions::actViewRfg ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actViewSideboard

void PlayerActions::actViewSideboard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actViewTopCards

void PlayerActions::actViewTopCards ( int number)
slot
Here is the call graph for this function:

◆ cardMenuAction

void PlayerActions::cardMenuAction ( QList< CardItem * > selectedCards,
CardMenuActionType type )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmdSetBottomCard()

void PlayerActions::cmdSetBottomCard ( Command_MoveCard & cmd)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmdSetTopCard()

void PlayerActions::cmdSetTopCard ( Command_MoveCard & cmd)
private
Here is the caller graph for this function:

◆ createCard()

void PlayerActions::createCard ( const CardItem * sourceCard,
const QString & dbCardName,
CardRelationType attach = CardRelationType::DoesNotAttach,
bool persistent = false )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRelatedFromRelation

bool PlayerActions::createRelatedFromRelation ( const CardItem * sourceCard,
const CardRelation * cardRelation,
int variableCount )
slot
Here is the call graph for this function:

◆ doMulligan

void PlayerActions::doMulligan ( int number)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isMovingCardsUntil()

bool PlayerActions::isMovingCardsUntil ( ) const
inlinenodiscard

◆ moveBottomCardsTo

void PlayerActions::moveBottomCardsTo ( int number,
const QString & targetZone,
bool faceDown )
slot
Here is the call graph for this function:

◆ moveOneCardUntil()

void PlayerActions::moveOneCardUntil ( CardItem * card)
Here is the call graph for this function:

◆ moveTopCardsTo

void PlayerActions::moveTopCardsTo ( int number,
const QString & targetZone,
bool faceDown )
slot
Here is the call graph for this function:

◆ moveTopCardsUntil

void PlayerActions::moveTopCardsUntil ( const QString & expr,
MoveTopCardsUntilOptions options )
slot
Here is the call graph for this function:

◆ offsetCardCounter()

void PlayerActions::offsetCardCounter ( QList< CardItem * > selectedCards,
int counterId,
int offset )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onRelatedCardCreated

void PlayerActions::onRelatedCardCreated ( const CardItem * sourceCard,
const CardRelation * cardRelation )
slot
Here is the call graph for this function:

◆ playCard

void PlayerActions::playCard ( CardItem * c,
bool faceDown )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCardToTable

void PlayerActions::playCardToTable ( const CardItem * card,
bool faceDown )
slot

Like PlayerActions::playCard, but forces the card to be played to the table zone. Cards with tablerow 3 (the stack) will be played to tablerow 1 (the noncreatures row).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playSelectedCards()

void PlayerActions::playSelectedCards ( QList< CardItem * > selectedCards,
bool faceDown = false )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareGameCommand() [1/2]

PendingCommand * PlayerActions::prepareGameCommand ( const ::google::protobuf::Message & cmd)
Here is the caller graph for this function:

◆ prepareGameCommand() [2/2]

PendingCommand * PlayerActions::prepareGameCommand ( const QList< const ::google::protobuf::Message * > & cmdList)

◆ requestCreateRelatedFromRelationDialog

void PlayerActions::requestCreateRelatedFromRelationDialog ( const CardItem * sourceCard,
const CardRelation * cardRelation )
signal
Here is the caller graph for this function:

◆ requestCreateTokenDialog

void PlayerActions::requestCreateTokenDialog ( const QStringList & predefinedTokens)
signal
Here is the caller graph for this function:

◆ requestDrawBottomCardsDialog

void PlayerActions::requestDrawBottomCardsDialog ( int defaultNumberBottomCards,
int maxCards )
signal
Here is the caller graph for this function:

◆ requestDrawCardsDialog

void PlayerActions::requestDrawCardsDialog ( int defaultNumberTopCards,
int deckSize )
signal
Here is the caller graph for this function:

◆ requestEnableAndSetCreateAnotherTokenAction

void PlayerActions::requestEnableAndSetCreateAnotherTokenAction ( const QString & lastTokenName)
signal
Here is the caller graph for this function:

◆ requestMoveBottomCardsToDialog

void PlayerActions::requestMoveBottomCardsToDialog ( int defaultNumberBottomCards,
int maxCards,
const QString & targetZone,
const QString & zoneDisplayName,
bool faceDown )
signal
Here is the caller graph for this function:

◆ requestMoveCardXCardsFromTopDialog

void PlayerActions::requestMoveCardXCardsFromTopDialog ( int defaultNumberTopCardsToPlaceBelow,
int deckSize )
signal
Here is the caller graph for this function:

◆ requestMoveTopCardsToDialog

void PlayerActions::requestMoveTopCardsToDialog ( int defaultNumberTopCards,
int maxCards,
const QString & targetZone,
const QString & zoneDisplayName,
bool faceDown )
signal
Here is the caller graph for this function:

◆ requestMoveTopCardsUntilDialog

void PlayerActions::requestMoveTopCardsUntilDialog ( MoveTopCardsUntilOptions options)
signal
Here is the caller graph for this function:

◆ requestMulliganDialog

void PlayerActions::requestMulliganDialog ( int startSize,
int handSize,
int deckSize )
signal
Here is the caller graph for this function:

◆ requestRollDieDialog

void PlayerActions::requestRollDieDialog ( )
signal
Here is the caller graph for this function:

◆ requestSetAnnotationDialog

void PlayerActions::requestSetAnnotationDialog ( const QString & oldAnnotation)
signal
Here is the caller graph for this function:

◆ requestSetCardCounterDialog

void PlayerActions::requestSetCardCounterDialog ( int counterId,
const QString & oldValueForDlg )
signal
Here is the caller graph for this function:

◆ requestSetLastToken

void PlayerActions::requestSetLastToken ( CardInfoPtr lastToken)
signal
Here is the caller graph for this function:

◆ requestSetPTDialog

void PlayerActions::requestSetPTDialog ( const QString & oldPT)
signal
Here is the caller graph for this function:

◆ requestShuffleBottomDialog

void PlayerActions::requestShuffleBottomDialog ( int defaultNumberBottomCards,
int maxCards )
signal
Here is the caller graph for this function:

◆ requestShuffleTopDialog

void PlayerActions::requestShuffleTopDialog ( int defaultNumberTopCards,
int maxCards )
signal
Here is the caller graph for this function:

◆ requestSortHand

void PlayerActions::requestSortHand ( const QList< CardList::SortOption > & options)
signal
Here is the caller graph for this function:

◆ requestViewBottomCardsDialog

void PlayerActions::requestViewBottomCardsDialog ( int defaultNumberBottomCards,
int deckSize )
signal
Here is the caller graph for this function:

◆ requestViewTopCardsDialog

void PlayerActions::requestViewTopCardsDialog ( int defaultNumberTopCards,
int deckSize )
signal
Here is the caller graph for this function:

◆ requestZoneViewToggle

void PlayerActions::requestZoneViewToggle ( const QString & zoneName,
int numberCards,
bool isReversed = false )
signal
Here is the caller graph for this function:

◆ sendGameCommand() [1/2]

void PlayerActions::sendGameCommand ( const google::protobuf::Message & command)

◆ sendGameCommand() [2/2]

void PlayerActions::sendGameCommand ( PendingCommand * pend)

◆ setLastRelatedCreationSucceeded

void PlayerActions::setLastRelatedCreationSucceeded ( bool succeeded)
inlineslot

◆ setLastToken

void PlayerActions::setLastToken ( CardInfoPtr cardInfo)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLastTokenInfo

void PlayerActions::setLastTokenInfo ( CardInfoPtr cardInfo)
slot
Here is the call graph for this function:

◆ stopMoveTopCardsUntil()

void PlayerActions::stopMoveTopCardsUntil ( )

Immediately stops any ongoing play top card to stack until... process, resetting all variables involved.

Here is the caller graph for this function:

Member Data Documentation

◆ defaultNumberBottomCards

int PlayerActions::defaultNumberBottomCards = 1
private

◆ defaultNumberDieRoll

int PlayerActions::defaultNumberDieRoll = 20
private

◆ defaultNumberTopCards

int PlayerActions::defaultNumberTopCards = 1
private

◆ defaultNumberTopCardsToPlaceBelow

int PlayerActions::defaultNumberTopCardsToPlaceBelow = 1
private

◆ lastRelatedCreationSucceeded

bool PlayerActions::lastRelatedCreationSucceeded = false
private

◆ lastTokenInfo

TokenInfo PlayerActions::lastTokenInfo
private

◆ lastTokenTableRow

int PlayerActions::lastTokenTableRow
private

◆ moveTopCardTimer

QTimer* PlayerActions::moveTopCardTimer
private

◆ movingCardsUntil

bool PlayerActions::movingCardsUntil
private

◆ movingCardsUntilCounter

int PlayerActions::movingCardsUntilCounter = 0
private

◆ movingCardsUntilFilter

FilterString PlayerActions::movingCardsUntilFilter
private

◆ movingCardsUntilOptions

MoveTopCardsUntilOptions PlayerActions::movingCardsUntilOptions
private

◆ player

PlayerLogic* PlayerActions::player
private

The documentation for this class was generated from the following files: