mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
52 lines
1 KiB
C++
52 lines
1 KiB
C++
#ifndef TAB_GAME_H
|
|
#define TAB_GAME_H
|
|
|
|
#include <QWidget>
|
|
|
|
class Client;
|
|
class CardDatabase;
|
|
class GameEvent;
|
|
class GameView;
|
|
class DeckView;
|
|
class GameScene;
|
|
class Game;
|
|
class CardInfoWidget;
|
|
class MessageLogWidget;
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
class ZoneViewLayout;
|
|
class ZoneViewWidget;
|
|
class PhasesToolbar;
|
|
class ProtocolResponse;
|
|
|
|
class TabGame : public QWidget {
|
|
Q_OBJECT
|
|
private:
|
|
Client *client;
|
|
int gameId;
|
|
|
|
QPushButton *loadLocalButton, *loadRemoteButton, *readyStartButton;
|
|
CardInfoWidget *cardInfo;
|
|
MessageLogWidget *messageLog;
|
|
QLabel *sayLabel;
|
|
QLineEdit *sayEdit;
|
|
PhasesToolbar *phasesToolbar;
|
|
GameScene *scene;
|
|
GameView *gameView;
|
|
DeckView *deckView;
|
|
Game *game;
|
|
ZoneViewLayout *zoneLayout;
|
|
QAction *aCloseMostRecentZoneView;
|
|
private slots:
|
|
void loadLocalDeck();
|
|
void loadRemoteDeck();
|
|
void readyStart();
|
|
void deckSelectFinished(ProtocolResponse *r);
|
|
public:
|
|
TabGame(Client *_client, int _gameId);
|
|
void retranslateUi();
|
|
void processGameEvent(GameEvent *event);
|
|
};
|
|
|
|
#endif
|