[Refactor] Retype card containers and zone logic onto CardState

This commit is contained in:
Lukas Brübach 2026-10-07 09:27:34 +02:00 • committed by GitHub
parent 6d0a2f0cc0
commit e2cbbecefe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 11 deletions

View file

@ -19,7 +19,7 @@ class GameMetaInfo;
class GameReplay; class GameReplay;
class GameState; class GameState;
class PlayerManager; class PlayerManager;
class CardState;
class AbstractGame : public QObject class AbstractGame : public QObject
{ {
Q_OBJECT Q_OBJECT

View file

@ -1,11 +1,7 @@
#include "pile_zone_logic.h" #include "pile_zone_logic.h"
#include "../board/card_list.h"
#include "../board/card_state.h" #include "../board/card_state.h"
class PlayerLogic;
class QObject;
PileZoneLogic::PileZoneLogic(PlayerLogic *_player, PileZoneLogic::PileZoneLogic(PlayerLogic *_player,
const QString &_name, const QString &_name,
bool _hasCardAttr, bool _hasCardAttr,

View file

@ -1,14 +1,9 @@
#include "table_zone_logic.h" #include "table_zone_logic.h"
#include "../board/card_list.h"
#include "../board/card_state.h" #include "../board/card_state.h"
#include "libcockatrice/card/card_info.h"
#include <QPoint> #include <QPoint>
class PlayerLogic;
class QObject;
TableZoneLogic::TableZoneLogic(PlayerLogic *_player, TableZoneLogic::TableZoneLogic(PlayerLogic *_player,
const QString &_name, const QString &_name,
bool _hasCardAttr, bool _hasCardAttr,

View file

@ -1,7 +1,6 @@
#include "view_zone_logic.h" #include "view_zone_logic.h"
#include "../../client/settings/cache_settings.h" #include "../../client/settings/cache_settings.h"
#include "../board/card_list.h"
#include "../board/card_state.h" #include "../board/card_state.h"
#include <QtGlobal> #include <QtGlobal>