#include <table_zone_logic.h>
|
| | TableZoneLogic (Player *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr) |
| | 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) |
| 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 |
| Player * | getPlayer () const |
| bool | contentsKnown () const |
| QList< ZoneViewZone * > & | getViews () |
| void | setAlwaysRevealTopCard (bool _alwaysRevealTopCard) |
| bool | getAlwaysRevealTopCard () const |
| bool | getHasCardAttr () const |
| bool | getIsShufflable () const |
| void | clearContents () |
◆ TableZoneLogic()
| TableZoneLogic::TableZoneLogic |
( |
Player * | _player, |
|
|
const QString & | _name, |
|
|
bool | _hasCardAttr, |
|
|
bool | _isShufflable, |
|
|
bool | _contentsKnown, |
|
|
QObject * | parent = nullptr ) |
◆ addCardImpl()
| void TableZoneLogic::addCardImpl |
( |
CardItem * | card, |
|
|
int | x, |
|
|
int | y ) |
|
overrideprotectedvirtual |
◆ contentSizeChanged
| void TableZoneLogic::contentSizeChanged |
( |
| ) |
|
|
signal |
◆ takeCard()
| CardItem * TableZoneLogic::takeCard |
( |
int | position, |
|
|
int | cardId, |
|
|
bool | toNewZone = true ) |
|
overrideprotectedvirtual |
Removes a card from view.
- Parameters
-
| 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 |
- Returns
- CardItem that has been removed
Reimplemented from CardZoneLogic.
◆ toggleTapped
| void TableZoneLogic::toggleTapped |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following files: