Back to rev. 347

This commit is contained in:
lotodore
2007-04-20 23:14:08 +00:00
parent 57927b7d73
commit a8cce94d3b
32 changed files with 315 additions and 333 deletions
+4 -9
View File
@@ -20,7 +20,6 @@
#include "session.h"
#include "game.h"
#include "guiinterface.h"
#include "qttoolswrapper.h"
#include "configfile.h"
#include <net/clientthread.h>
#include <net/serverthread.h>
@@ -30,14 +29,10 @@
using namespace std;
Session::Session()
: actualGameID(0), myNetClient(0), myNetServer(0), actualGame(0), myGui(0)
Session::Session(GuiInterface *g)
: actualGameID(0), myNetClient(0), myNetServer(0), actualGame(0), myGui(g)
{
QtToolsInterface *myQtToolsInterface = new QtToolsWrapper();
myConfig = new ConfigFile(myQtToolsInterface->getMyAppDirPath());
setConfigPath(myQtToolsInterface->getMyAppDirPath());
myConfig = new ConfigFile;
}
@@ -54,7 +49,7 @@ void Session::startGame(int qP, int sC, int sB) {
actualGameID++;
actualGame = new Game(this, myGui, qP, sC, sB, actualGameID);
actualGame = new Game(myConfig, myGui, qP, sC, sB, actualGameID);
}
void Session::deleteGame() {