This commit is contained in:
doitux
2007-01-13 22:29:17 +00:00
parent ccd74ccb92
commit 507ffdd2a8
21 changed files with 176 additions and 85 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ public:
//wird nach Einbau der EngineInterfaces umbenannt in setGameInterface und cp.
virtual void setGame(Game*) =0;
virtual void setHand(LocalHand*) =0;
virtual void setHand(HandInterface*) =0;
virtual void setSession(Session*) =0;
//
virtual int getMaxQuantityPlayers() const=0;
+1 -1
View File
@@ -45,7 +45,7 @@ GuiWrapper::~GuiWrapper()
}
void GuiWrapper::setGame(Game *g) { myW->setGame(g); }
void GuiWrapper::setHand(LocalHand *lh) { myW->setHand(lh); }
void GuiWrapper::setHand(HandInterface *lh) { myW->setHand(lh); }
void GuiWrapper::setSession(Session *s) { myW->setSession(s); }
int GuiWrapper::getMaxQuantityPlayers() const { return myW->getMaxQuantityPlayers(); }
+1 -1
View File
@@ -39,7 +39,7 @@ public:
~GuiWrapper();
void setGame(Game*);
void setHand(LocalHand*);
void setHand(HandInterface*);
void setSession(Session*);
int getMaxQuantityPlayers() const;
+6 -2
View File
@@ -21,8 +21,12 @@
#include "newgamedialogimpl.h"
#include "aboutpokerthimpl.h"
#include "handinterface.h"
#include "playerinterface.h"
#include "boardinterface.h"
#include "game.h"
#include "localhand.h"
#include "session.h"
// #include "player.h"
@@ -219,7 +223,7 @@ void mainWindowImpl::callAboutPokerthDialog() {
void mainWindowImpl::setGame(Game *g) { actualGame = g; }
void mainWindowImpl::setHand(LocalHand* br) { actualHand = br; }
void mainWindowImpl::setHand(HandInterface* br) { actualHand = br; }
void mainWindowImpl::setSession(Session* s) { mySession = s; }
+6 -3
View File
@@ -29,7 +29,10 @@
class Game;
class Session;
class LocalHand;
class BoardInterface;
class HandInterface;
class PlayerInterface;
class QColor;
@@ -39,7 +42,7 @@ Q_OBJECT
public:
mainWindowImpl(QMainWindow *parent = 0, const char *name = 0 );
void setGame(Game*);
void setHand(LocalHand*);
void setHand(HandInterface*);
void setSession(Session*);
@@ -143,7 +146,7 @@ public slots:
private:
Game *actualGame;
LocalHand *actualHand;
HandInterface *actualHand;
Session *mySession;