![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_zone_logic.h>
Public Slots | |
| void | moveAllToZone () |
Signals | |
| void | cardAdded (CardItem *addedCard) |
| void | cardCountChanged () |
| void | reorganizeCards () |
| void | updateGraphics () |
| void | setGraphicsVisibility (bool visible) |
| void | retranslateUi () |
Public Member Functions | |
| 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) |
| 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 |
| 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 | |
| virtual void | addCardImpl (CardItem *card, int x, int y)=0 |
Protected Attributes | |
| PlayerLogic * | player |
| QString | name |
| CardList | cards |
| QList< ZoneViewZone * > | views |
| bool | hasCardAttr |
| bool | isShufflable |
| bool | alwaysRevealTopCard |
Private Slots | |
| void | refreshCardInfos () |
|
explicit |
| _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. |
| void CardZoneLogic::addCard | ( | CardItem * | card, |
| bool | reorganize, | ||
| int | x, | ||
| int | y = -1 ) |
|
protectedpure virtual |
Implemented in HandZoneLogic, PileZoneLogic, StackZoneLogic, TableZoneLogic, and ZoneViewZoneLogic.
|
signal |
|
signal |
| void CardZoneLogic::clearContents | ( | ) |
|
inlinenodiscard |
|
inlinenodiscard |
| CardItem * CardZoneLogic::getCard | ( | int | cardId | ) |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
nodiscard |
|
inline |
|
slot |
|
inline |
|
privateslot |
| void CardZoneLogic::removeCard | ( | CardItem * | card | ) |
|
signal |
|
signal |
|
inline |
|
signal |
|
inline |
|
virtual |
Reimplemented in TableZoneLogic.
|
signal |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |