myW removed from engine classes

This commit is contained in:
doitux
2007-01-13 14:27:56 +00:00
parent d17b23737a
commit 1afc0c12c1
20 changed files with 226 additions and 159 deletions
+3 -4
View File
@@ -18,13 +18,12 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "session.h"
#include "mainwindowimpl.h"
#include "game.h"
#include "guiinterface.h"
using namespace std;
Session::Session(mainWindowImpl* w, GuiInterface* g) : actualGame(0), myW(w), myGui(g)
Session::Session(GuiInterface* g) : actualGame(0), myGui(g)
{
@@ -33,7 +32,7 @@ Session::Session(mainWindowImpl* w, GuiInterface* g) : actualGame(0), myW(w), my
// a.setMainWidget( w );
// myW->show();
// Session an mainwindowimpl bergeben
myW->setSession(this);
myGui->setSession(this);
}
@@ -46,7 +45,7 @@ Session::~Session()
void Session::startGame(int qP, int sC, int sB) {
actualGame = new Game(myW, myGui, qP, sC, sB);
actualGame = new Game(myGui, qP, sC, sB);
}