Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
14
class
PlayerLogic
;
15
class
QObject;
16
17
class
TableZoneLogic
:
public
CardZoneLogic
18
{
19
Q_OBJECT
20
signals:
21
void
contentSizeChanged
();
22
void
toggleTapped
();
23
24
public
:
25
TableZoneLogic
(
PlayerLogic
*_player,
26
const
QString &_name,
27
bool
_hasCardAttr,
28
bool
_isShufflable,
29
bool
_contentsKnown,
30
QObject *parent =
nullptr
);
31
32
protected
:
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
card_zone_logic.h
CardItem
Definition
card_item.h:33
CardZoneLogic::CardZoneLogic
CardZoneLogic(PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
Definition
card_zone_logic.cpp:32
PlayerLogic
Definition
player_logic.h:56
TableZoneLogic::TableZoneLogic
TableZoneLogic(PlayerLogic *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QObject *parent=nullptr)
Definition
table_zone_logic.cpp:12
TableZoneLogic::toggleTapped
void toggleTapped()
TableZoneLogic::takeCard
CardItem * takeCard(int position, int cardId, bool toNewZone=true) override
Removes a card from view.
Definition
table_zone_logic.cpp:35
TableZoneLogic::addCardImpl
void addCardImpl(CardItem *card, int x, int y) override
Definition
table_zone_logic.cpp:22
TableZoneLogic::contentSizeChanged
void contentSizeChanged()
cockatrice
src
game
zones
table_zone_logic.h
Generated by
1.18.0