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

#include <table_zone_logic.h>

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

Signals

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

Public Member Functions

 TableZoneLogic (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)
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
CardItemtakeCard (int position, int cardId, bool toNewZone=true) override
 Removes a card from view.

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

◆ TableZoneLogic()

TableZoneLogic::TableZoneLogic ( 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 TableZoneLogic::addCardImpl ( CardItem * card,
int x,
int y )
overrideprotectedvirtual

Implements CardZoneLogic.

Here is the call graph for this function:

◆ contentSizeChanged

void TableZoneLogic::contentSizeChanged ( )
signal
Here is the caller graph for this function:

◆ takeCard()

CardItem * TableZoneLogic::takeCard ( int position,
int cardId,
bool toNewZone = true )
overrideprotectedvirtual

Removes a card from view.

Parameters
positioncard position
cardIdid of card to take
toNewZoneWhether the destination of the card is not the same as the starting zone. Defaults to true
Returns
CardItem that has been removed

Reimplemented from CardZoneLogic.

Here is the call graph for this function:

◆ toggleTapped

void TableZoneLogic::toggleTapped ( )
signal
Here is the caller graph for this function:

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