This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
~GuiWrapper();
|
||||
|
||||
void setGame(Game*);
|
||||
void setHand(LocalHand*);
|
||||
void setHand(HandInterface*);
|
||||
void setSession(Session*);
|
||||
|
||||
int getMaxQuantityPlayers() const;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user