fixes 20/40 bug
This commit is contained in:
+61
-53
@@ -3,6 +3,31 @@
|
|||||||
INSTALLS += TARGET
|
INSTALLS += TARGET
|
||||||
TARGET.files += bin/*
|
TARGET.files += bin/*
|
||||||
TARGET.path = /usr/bin/
|
TARGET.path = /usr/bin/
|
||||||
|
|
||||||
|
INCLUDEPATH += . \
|
||||||
|
src \
|
||||||
|
src/engine \
|
||||||
|
src/gui \
|
||||||
|
src/net \
|
||||||
|
src/engine/local_engine \
|
||||||
|
src/config \
|
||||||
|
src/core/tinyxml \
|
||||||
|
src/gui/qt \
|
||||||
|
src/gui/qt/log \
|
||||||
|
src/gui/qt/connecttoserverdialog \
|
||||||
|
src/core \
|
||||||
|
src/gui/qt/qttools \
|
||||||
|
src/gui/qt/qttools/qthelper \
|
||||||
|
src/gui/qt/mainwindow \
|
||||||
|
src/gui/qt/mainwindow/startsplash \
|
||||||
|
src/gui/qt/aboutpokerth \
|
||||||
|
src/gui/qt/createnetworkgamedialog \
|
||||||
|
src/gui/qt/joinnetworkgamedialog \
|
||||||
|
src/gui/qt/newlocalgamedialog \
|
||||||
|
src/gui/qt/settingsdialog \
|
||||||
|
src/gui/qt/startnetworkgamedialog \
|
||||||
|
src/gui/qt/waitforservertostartgamedialog
|
||||||
|
|
||||||
DEPENDPATH += . \
|
DEPENDPATH += . \
|
||||||
src \
|
src \
|
||||||
src/config \
|
src/config \
|
||||||
@@ -22,35 +47,12 @@ DEPENDPATH += . \
|
|||||||
src/gui/qt/createnetworkgamedialog \
|
src/gui/qt/createnetworkgamedialog \
|
||||||
src/gui/qt/joinnetworkgamedialog \
|
src/gui/qt/joinnetworkgamedialog \
|
||||||
src/gui/qt/log \
|
src/gui/qt/log \
|
||||||
src/gui/qt/qttools \
|
src/gui/qt/qttools \
|
||||||
src/gui/qt/qttools/qthelper \
|
src/gui/qt/qttools/qthelper \
|
||||||
src/gui/qt/newlocalgamedialog \
|
src/gui/qt/newlocalgamedialog \
|
||||||
src/gui/qt/settingsdialog \
|
src/gui/qt/settingsdialog \
|
||||||
src/gui/qt/startnetworkgamedialog \
|
src/gui/qt/startnetworkgamedialog \
|
||||||
src/gui/qt/waitforservertostartgamedialog
|
src/gui/qt/waitforservertostartgamedialog
|
||||||
INCLUDEPATH += . \
|
|
||||||
src \
|
|
||||||
src/engine \
|
|
||||||
src/gui \
|
|
||||||
src/net \
|
|
||||||
src/engine/local_engine \
|
|
||||||
src/config \
|
|
||||||
src/core/tinyxml \
|
|
||||||
src/gui/qt \
|
|
||||||
src/gui/qt/log \
|
|
||||||
src/gui/qt/connecttoserverdialog \
|
|
||||||
src/core \
|
|
||||||
src/gui/qt/qttools \
|
|
||||||
src/gui/qt/qttools/qthelper \
|
|
||||||
src/gui/qt/mainwindow \
|
|
||||||
src/gui/qt/mainwindow/startsplash \
|
|
||||||
src/gui/qt/aboutpokerth \
|
|
||||||
src/gui/qt/createnetworkgamedialog \
|
|
||||||
src/gui/qt/joinnetworkgamedialog \
|
|
||||||
src/gui/qt/newlocalgamedialog \
|
|
||||||
src/gui/qt/settingsdialog \
|
|
||||||
src/gui/qt/startnetworkgamedialog \
|
|
||||||
src/gui/qt/waitforservertostartgamedialog
|
|
||||||
# Input
|
# Input
|
||||||
HEADERS += src/game.h \
|
HEADERS += src/game.h \
|
||||||
src/session.h \
|
src/session.h \
|
||||||
@@ -106,8 +108,8 @@ HEADERS += src/game.h \
|
|||||||
src/gui/qt/settingsdialog/settingsdialogimpl.h \
|
src/gui/qt/settingsdialog/settingsdialogimpl.h \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
||||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h \
|
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h \
|
||||||
src/gui/qttoolsinterface.h \
|
src/gui/qttoolsinterface.h \
|
||||||
src/gui/qt/qttools/qttoolswrapper.h \
|
src/gui/qt/qttools/qttoolswrapper.h \
|
||||||
src/gui/qt/qttools/qthelper/qthelper.h
|
src/gui/qt/qttools/qthelper/qthelper.h
|
||||||
FORMS += src/gui/qt/mainwindow.ui \
|
FORMS += src/gui/qt/mainwindow.ui \
|
||||||
src/gui/qt/aboutpokerth.ui \
|
src/gui/qt/aboutpokerth.ui \
|
||||||
@@ -181,8 +183,8 @@ SOURCES += src/game.cpp \
|
|||||||
src/gui/qt/settingsdialog/settingsdialogimpl.cpp \
|
src/gui/qt/settingsdialog/settingsdialogimpl.cpp \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
||||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp \
|
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp \
|
||||||
src/gui/qttoolsinterface.cpp \
|
src/gui/qttoolsinterface.cpp \
|
||||||
src/gui/qt/qttools/qttoolswrapper.cpp \
|
src/gui/qt/qttools/qttoolswrapper.cpp \
|
||||||
src/gui/qt/qttools/qthelper/qthelper.cpp
|
src/gui/qt/qttools/qthelper/qthelper.cpp
|
||||||
RESOURCES += src/gui/qt/resources.qrc
|
RESOURCES += src/gui/qt/resources.qrc
|
||||||
TRANSLATIONS = ts/pokerth_de.ts \
|
TRANSLATIONS = ts/pokerth_de.ts \
|
||||||
@@ -192,9 +194,11 @@ TRANSLATIONS = ts/pokerth_de.ts \
|
|||||||
ts/pokerth_se.ts \
|
ts/pokerth_se.ts \
|
||||||
ts/pokerth_pt.ts \
|
ts/pokerth_pt.ts \
|
||||||
ts/pokerth_nl.ts
|
ts/pokerth_nl.ts
|
||||||
CODECFORSRC = UTF-8
|
CODECFORSRC = UTF-8
|
||||||
|
|
||||||
TEMPLATE = vcapp
|
TEMPLATE = vcapp
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
win32{
|
win32{
|
||||||
DEPENDPATH += src/net/win32/ src/core/win32
|
DEPENDPATH += src/net/win32/ src/core/win32
|
||||||
SOURCES += src/core/win32/rand.cpp \
|
SOURCES += src/core/win32/rand.cpp \
|
||||||
@@ -213,37 +217,41 @@ win32{
|
|||||||
}
|
}
|
||||||
|
|
||||||
unix{
|
unix{
|
||||||
LIBS += -lboost_thread -lcrypto
|
LIBS += -lboost_thread -lcrypto
|
||||||
}
|
}
|
||||||
|
|
||||||
macx {
|
macx{
|
||||||
# make it universal
|
# make it universal
|
||||||
CONFIG += x86
|
CONFIG += x86
|
||||||
CONFIG += ppc
|
CONFIG += ppc
|
||||||
|
|
||||||
# for universal-compilation on PPC-Mac uncomment the following line
|
|
||||||
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
|
|
||||||
|
|
||||||
# link needed Qt parts static (path is standard for self-compiling qt)
|
# for universal-compilation on PPC-Mac uncomment the following line
|
||||||
LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.a
|
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
|
||||||
LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.a
|
|
||||||
# standard path for darwinports
|
# link needed Qt parts static (path is standard for self-compiling qt)
|
||||||
# make sure you have a universal version of boost
|
LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.a
|
||||||
LIBS += /opt/local/lib/libboost_thread.a
|
LIBS += /usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.a
|
||||||
# crypto should be installed on every mac
|
# standard path for darwinports
|
||||||
LIBS += -lcrypto -lz -framework Carbon
|
# make sure you have a universal version of boost
|
||||||
# set the application icon
|
LIBS += /opt/local/lib/libboost_thread.a
|
||||||
RC_FILE = pokerth.icns
|
# crypto should be installed on every mac
|
||||||
LIBPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
|
LIBS += -lcrypto -lz -framework Carbon
|
||||||
INCLUDEPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
|
# set the application icon
|
||||||
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/
|
RC_FILE = pokerth.icns
|
||||||
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/QtCore
|
LIBPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
|
||||||
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/QtGui
|
INCLUDEPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
|
||||||
|
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/
|
||||||
|
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/QtCore
|
||||||
|
INCLUDEPATH += /usr/local/Trolltech/Qt-4.2.3/include/QtGui
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG += qt release
|
CONFIG += qt release
|
||||||
|
#CONFIG += qt warn_on debug
|
||||||
UI_DIR = uics
|
UI_DIR = uics
|
||||||
TARGET = bin/pokerth
|
TARGET = bin/pokerth
|
||||||
MOC_DIR = mocs
|
MOC_DIR = mocs
|
||||||
OBJECTS_DIR = obj
|
OBJECTS_DIR = obj
|
||||||
QT +=
|
QT +=
|
||||||
|
# QMAKE_CXXFLAGS_DEBUG += -g
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -108,6 +108,7 @@ Game::~Game()
|
|||||||
|
|
||||||
void Game::startHand()
|
void Game::startHand()
|
||||||
{
|
{
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// eventuell vorhandene Hand löschen
|
// eventuell vorhandene Hand löschen
|
||||||
@@ -119,7 +120,7 @@ void Game::startHand()
|
|||||||
actualHandID++;
|
actualHandID++;
|
||||||
|
|
||||||
// smallBlind alle x Runden erhöhen
|
// smallBlind alle x Runden erhöhen
|
||||||
if(actualHandID%(startHandsBeforeRaiseSmallBlind+1) == 0) actualSmallBlind *= 2;
|
if(actualHandID%(startHandsBeforeRaiseSmallBlind+1) == 0) { actualSmallBlind *= 2; }
|
||||||
|
|
||||||
//Spieler Action auf 0 setzen
|
//Spieler Action auf 0 setzen
|
||||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
@@ -140,7 +141,6 @@ void Game::startHand()
|
|||||||
// Hand erstellen
|
// Hand erstellen
|
||||||
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
|
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
|
||||||
|
|
||||||
|
|
||||||
//GUI bereinigen
|
//GUI bereinigen
|
||||||
myGui->nextRoundCleanGui();
|
myGui->nextRoundCleanGui();
|
||||||
|
|
||||||
|
|||||||
@@ -2060,13 +2060,27 @@ void mainWindowImpl::nextRoundCleanGui() {
|
|||||||
flipHolecardsAllInAlreadyDone = FALSE;
|
flipHolecardsAllInAlreadyDone = FALSE;
|
||||||
|
|
||||||
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
|
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
|
||||||
if (myConfig->readConfigInt("PauseBetweenHands")) { pushButton_break->click(); }
|
if (myConfig->readConfigInt("PauseBetweenHands") && blinkingStartButtonAnimationTimer->isActive() == FALSE ) {
|
||||||
|
pushButton_break->click();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
//FIX STRG+N Bug
|
//FIX STRG+N Bug
|
||||||
pushButton_break->setEnabled(TRUE);
|
pushButton_break->setEnabled(TRUE);
|
||||||
breakAfterActualHand=FALSE;
|
breakAfterActualHand=FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Clean breakbutton
|
||||||
|
blinkingStartButtonAnimationTimer->stop();
|
||||||
|
QPalette tempPalette = pushButton_break->palette();
|
||||||
|
tempPalette.setColor(QPalette::Button, QColor(40,82,0));
|
||||||
|
tempPalette.setColor(QPalette::ButtonText, QColor(240,240,240));
|
||||||
|
pushButton_break->setPalette(tempPalette);
|
||||||
|
blinkingStartButtonAnimationTimer->stop();
|
||||||
|
QFontMetrics tempMetrics = this->fontMetrics();
|
||||||
|
int width = tempMetrics.width(tr("Stop"));
|
||||||
|
pushButton_break->setMinimumSize(width+10,20);
|
||||||
|
pushButton_break->setText(tr("Stop"));
|
||||||
|
|
||||||
//Clear Statusbarmessage
|
//Clear Statusbarmessage
|
||||||
statusBar()->clearMessage();
|
statusBar()->clearMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user