mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 02:53:25 -08:00
[Refactor] Retype card containers and zone logic onto CardState
This commit is contained in:
parent
6d0a2f0cc0
commit
e2cbbecefe
4 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue