![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <table_zone_logic.h>
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 (PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr) | |
| Public Member Functions inherited from CardZoneLogic | |
| CardZoneLogic (PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr) | |
| void | addCard (CardItem *card, bool reorganize, int x, int y=-1) |
| CardItem * | getCard (int cardId) |
| void | removeCard (CardItem *card) |
| void | rawInsertCard (CardItem *card, int index) |
| const CardList & | getCards () const |
| void | sortCards (const QList< CardList::SortOption > &options) |
| QString | getName () const |
| QString | getTranslatedName (bool theirOwn, GrammaticalCase gc) const |
| PlayerLogic * | getPlayer () 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 |
| CardItem * | takeCard (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 | |
| PlayerLogic * | player |
| QString | name |
| CardList | cards |
| QList< ZoneViewZone * > | views |
| bool | hasCardAttr |
| bool | isShufflable |
| bool | alwaysRevealTopCard |
| TableZoneLogic::TableZoneLogic | ( | PlayerLogic * | _player, |
| const QString & | _name, | ||
| bool | _hasCardAttr, | ||
| bool | _isShufflable, | ||
| bool | _contentsKnown, | ||
| QObject * | parent = nullptr ) |
|
overrideprotectedvirtual |
Implements CardZoneLogic.
|
signal |
|
overrideprotectedvirtual |
Removes a card from view.
| position | card position |
| cardId | id of card to take |
| toNewZone | Whether the destination of the card is not the same as the starting zone. Defaults to true |
Reimplemented from CardZoneLogic.
|
signal |