preliminary client-side replay support, works in principle

This commit is contained in:
Max-Wilhelm Bruker 2012-02-21 00:09:03 +01:00
parent d50d179b2f
commit a1bcd9854f
13 changed files with 220 additions and 32 deletions

View file

@ -49,6 +49,7 @@ class TabGame;
class DeckList;
class QVBoxLayout;
class QHBoxLayout;
class GameReplay;
class ServerInfo_User;
class PendingCommand;
@ -107,7 +108,9 @@ private:
QStringList phasesList;
int currentPhase;
int activePlayer;
GameReplay *replay;
int currentReplayStep;
QSplitter *splitter;
CardInfoWidget *cardInfo;
PlayerListWidget *playerListWidget;
@ -155,6 +158,7 @@ signals:
void containerProcessingDone();
void openMessageDialog(const QString &userName, bool focus);
private slots:
void nextReplayStep();
void incrementGameTime();
void adminLockChanged(bool lock);
void newCardAdded(AbstractCardItem *card);
@ -168,6 +172,7 @@ private slots:
void actNextTurn();
public:
TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_clients, const Event_GameJoined &event);
TabGame(GameReplay *replay);
~TabGame();
void retranslateUi();
void closeRequest();