#include <card_zone_logic.h>
|
| | 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) |
| virtual CardItem * | takeCard (int position, int cardId, bool canResize=true) |
| 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 () |
◆ CardZoneLogic()
| CardZoneLogic::CardZoneLogic |
( |
Player * | _player, |
|
|
const QString & | _name, |
|
|
bool | _hasCardAttr, |
|
|
bool | _isShufflable, |
|
|
bool | _contentsKnown, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
- Parameters
-
| _player | the player that the zone belongs to |
| _name | internal name of the zone |
| _hasCardAttr | whether cards in the zone can have attributes set on them |
| _isShufflable | whether it makes sense to shuffle this zone by default after viewing it |
| _contentsKnown | whether the cards in the zone are known to the client |
| parent | the parent QObject. |
◆ addCard()
| void CardZoneLogic::addCard |
( |
CardItem * | card, |
|
|
bool | reorganize, |
|
|
int | x, |
|
|
int | y = -1 ) |
◆ addCardImpl()
| virtual void CardZoneLogic::addCardImpl |
( |
CardItem * | card, |
|
|
int | x, |
|
|
int | y ) |
|
protectedpure virtual |
◆ cardAdded
| void CardZoneLogic::cardAdded |
( |
CardItem * | addedCard | ) |
|
|
signal |
◆ cardCountChanged
| void CardZoneLogic::cardCountChanged |
( |
| ) |
|
|
signal |
◆ clearContents()
| void CardZoneLogic::clearContents |
( |
| ) |
|
◆ contentsKnown()
| bool CardZoneLogic::contentsKnown |
( |
| ) |
const |
|
inlinenodiscard |
◆ getAlwaysRevealTopCard()
| bool CardZoneLogic::getAlwaysRevealTopCard |
( |
| ) |
const |
|
inlinenodiscard |
◆ getCard()
| CardItem * CardZoneLogic::getCard |
( |
int | cardId | ) |
|
◆ getCards()
| const CardList & CardZoneLogic::getCards |
( |
| ) |
const |
|
inlinenodiscard |
◆ getHasCardAttr()
| bool CardZoneLogic::getHasCardAttr |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIsShufflable()
| bool CardZoneLogic::getIsShufflable |
( |
| ) |
const |
|
inlinenodiscard |
◆ getName()
| QString CardZoneLogic::getName |
( |
| ) |
const |
|
inlinenodiscard |
◆ getPlayer()
| Player * CardZoneLogic::getPlayer |
( |
| ) |
const |
|
inlinenodiscard |
◆ getTranslatedName()
| QString CardZoneLogic::getTranslatedName |
( |
bool | theirOwn, |
|
|
GrammaticalCase | gc ) const |
|
nodiscard |
◆ getViews()
◆ moveAllToZone
| void CardZoneLogic::moveAllToZone |
( |
| ) |
|
|
slot |
◆ rawInsertCard()
| void CardZoneLogic::rawInsertCard |
( |
CardItem * | card, |
|
|
int | index ) |
|
inline |
◆ refreshCardInfos
| void CardZoneLogic::refreshCardInfos |
( |
| ) |
|
|
privateslot |
◆ removeCard()
| void CardZoneLogic::removeCard |
( |
CardItem * | card | ) |
|
◆ reorganizeCards
| void CardZoneLogic::reorganizeCards |
( |
| ) |
|
|
signal |
◆ retranslateUi
| void CardZoneLogic::retranslateUi |
( |
| ) |
|
|
signal |
◆ setAlwaysRevealTopCard()
| void CardZoneLogic::setAlwaysRevealTopCard |
( |
bool | _alwaysRevealTopCard | ) |
|
|
inline |
◆ setGraphicsVisibility
| void CardZoneLogic::setGraphicsVisibility |
( |
bool | visible | ) |
|
|
signal |
◆ sortCards()
◆ takeCard()
| CardItem * CardZoneLogic::takeCard |
( |
int | position, |
|
|
int | cardId, |
|
|
bool | canResize = true ) |
|
virtual |
◆ updateGraphics
| void CardZoneLogic::updateGraphics |
( |
| ) |
|
|
signal |
◆ alwaysRevealTopCard
| bool CardZoneLogic::alwaysRevealTopCard |
|
protected |
◆ cards
◆ hasCardAttr
| bool CardZoneLogic::hasCardAttr |
|
protected |
◆ isShufflable
| bool CardZoneLogic::isShufflable |
|
protected |
◆ name
| QString CardZoneLogic::name |
|
protected |
◆ player
◆ views
The documentation for this class was generated from the following files: