initial commit of local server code

This commit is contained in:
Max-Wilhelm Bruker 2010-08-04 13:56:51 +02:00
parent cbfbc542e7
commit 7921b5f82d
35 changed files with 143 additions and 365 deletions

View file

@ -5,7 +5,7 @@
#include <QPushButton>
#include "tab.h"
class Client;
class AbstractClient;
class CardDatabase;
class GameView;
class DeckView;
@ -55,7 +55,7 @@ protected:
class TabGame : public Tab {
Q_OBJECT
private:
Client *client;
AbstractClient *client;
int gameId;
QString gameDescription;
int localPlayerId;
@ -120,7 +120,7 @@ private slots:
void actNextPhase();
void actNextTurn();
public:
TabGame(Client *_client, int _gameId, const QString &_gameDescription, int _localPlayerId, bool _spectator, bool _spectatorsCanTalk, bool _spectatorsSeeEverything, bool _resuming);
TabGame(AbstractClient *_client, int _gameId, const QString &_gameDescription, int _localPlayerId, bool _spectator, bool _spectatorsCanTalk, bool _spectatorsSeeEverything, bool _resuming);
~TabGame();
void retranslateUi();
const QMap<int, Player *> &getPlayers() const { return players; }