Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
table_zone_logic.h
Go to the documentation of this file.
1
6
7#ifndef COCKATRICE_TABLE_ZONE_LOGIC_H
8#define COCKATRICE_TABLE_ZONE_LOGIC_H
9#include "card_zone_logic.h"
10
11#include <QString>
12#include <qtmetamacros.h>
13
14class PlayerLogic;
15class QObject;
16
18{
19 Q_OBJECT
20signals:
23
24public:
26 const QString &_name,
27 bool _hasCardAttr,
28 bool _isShufflable,
29 bool _contentsKnown,
30 QObject *parent = nullptr);
31
32protected:
33 void addCardImpl(CardItem *card, int x, int y) override;
34
43 CardItem *takeCard(int position, int cardId, bool toNewZone = true) override;
44};
45
46#endif // COCKATRICE_TABLE_ZONE_LOGIC_H
Definition card_item.h:33
CardZoneLogic(PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
Definition card_zone_logic.cpp:32
Definition player_logic.h:56
TableZoneLogic(PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
Definition table_zone_logic.cpp:12
void toggleTapped()
CardItem * takeCard(int position, int cardId, bool toNewZone=true) override
Removes a card from view.
Definition table_zone_logic.cpp:35
void addCardImpl(CardItem *card, int x, int y) override
Definition table_zone_logic.cpp:22
void contentSizeChanged()