Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PileZoneLogic Class Reference

#include <pile_zone_logic.h>

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

Signals

void callUpdate ()
Signals inherited from CardZoneLogic
void cardAdded (CardItem *addedCard)
void cardCountChanged ()
void reorganizeCards ()
void updateGraphics ()
void setGraphicsVisibility (bool visible)
void retranslateUi ()

Public Member Functions

 PileZoneLogic (Player *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
Public Member Functions inherited from CardZoneLogic
 CardZoneLogic (Player *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
void addCard (CardItem *card, bool reorganize, int x, int y=-1)
CardItemgetCard (int cardId)
void removeCard (CardItem *card)
virtual CardItemtakeCard (int position, int cardId, bool canResize=true)
void rawInsertCard (CardItem *card, int index)
const CardListgetCards () const
void sortCards (const QList< CardList::SortOption > &options)
QString getName () const
QString getTranslatedName (bool theirOwn, GrammaticalCase gc) const
PlayergetPlayer () const
bool contentsKnown () const
QList< ZoneViewZone * > & getViews ()
void setAlwaysRevealTopCard (bool _alwaysRevealTopCard)
bool getAlwaysRevealTopCard () const
bool getHasCardAttr () const
bool getIsShufflable () const
void clearContents ()

Protected Member Functions

void addCardImpl (CardItem *card, int x, int y) override

Additional Inherited Members

Public Slots inherited from CardZoneLogic
void moveAllToZone ()
Protected Attributes inherited from CardZoneLogic
Playerplayer
QString name
CardList cards
QList< ZoneViewZone * > views
bool hasCardAttr
bool isShufflable
bool alwaysRevealTopCard

Constructor & Destructor Documentation

◆ PileZoneLogic()

PileZoneLogic::PileZoneLogic ( Player * _player,
const QString & _name,
bool _hasCardAttr,
bool _isShufflable,
bool _contentsKnown,
QObject * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ addCardImpl()

void PileZoneLogic::addCardImpl ( CardItem * card,
int x,
int y )
overrideprotectedvirtual

Implements CardZoneLogic.

Here is the call graph for this function:

◆ callUpdate

void PileZoneLogic::callUpdate ( )
signal
Here is the caller graph for this function:

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