From 387ee11a14813cbd3e93a3dd6c01e2e07428b214 Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 21 Jan 2007 00:14:35 +0000 Subject: [PATCH] --- pokerth.pro | 12 +++++++++--- src/game.h | 8 ++++++++ src/session.cpp | 3 +++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/pokerth.pro b/pokerth.pro index a1383b88..2e6d87df 100755 --- a/pokerth.pro +++ b/pokerth.pro @@ -11,7 +11,9 @@ FORMS += mainwindow.ui \ aboutpokerth.ui \ newgamedialog.ui \ settingsdialog.ui -HEADERS += mainwindowimpl.h \ +HEADERS += tinystr.h \ + tinyxml.h \ + mainwindowimpl.h \ newgamedialogimpl.h \ aboutpokerthimpl.h \ settingsdialogimpl.h \ @@ -41,6 +43,10 @@ HEADERS += mainwindowimpl.h \ localenginefactory.h SOURCES += pokerth.cpp \ + tinystr.cpp \ + tinyxml.cpp \ + tinyxmlerror.cpp \ + tinyxmlparser.cpp \ mainwindowimpl.cpp \ newgamedialogimpl.cpp \ aboutpokerthimpl.cpp \ @@ -72,8 +78,8 @@ SOURCES += pokerth.cpp \ RESOURCES = src/gui/qt/deck.qrc TEMPLATE = app -DEPENDPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine -INCLUDEPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine +DEPENDPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine src/tinyxml +INCLUDEPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine src/tinyxml CONFIG += qt release UI_DIR = uics TARGET = bin/pokerth diff --git a/src/game.h b/src/game.h index f6fa157f..825d02c7 100755 --- a/src/game.h +++ b/src/game.h @@ -60,7 +60,13 @@ public: void setActualHandID(const int& theValue) { actualHandID = theValue; } int getActualHandID() const { return actualHandID; } + void setRoundsToRaiseSmallBlind(const int& theValue) { roundsToRaiseSmallBlind = theValue; } + int getRoundsToRaiseSmallBlind() const { return roundsToRaiseSmallBlind; } + void startHand(); + + + @@ -83,6 +89,8 @@ private: int actualHandID; int dealerPosition; + int roundsToRaiseSmallBlind; + }; diff --git a/src/session.cpp b/src/session.cpp index c2d2338d..bb36a9ac 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -20,6 +20,7 @@ #include "session.h" #include "game.h" #include "guiinterface.h" +#include "tinyxml.h" using namespace std; @@ -31,6 +32,8 @@ Session::Session(GuiInterface* g) : actualGame(0), myGui(g) // Session an mainwindowimpl bergeben myGui->setSession(this); + //Konfiguration erstellen; + }