Logging improvements
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "startsplash.h"
|
||||
#include "mycardspixmaplabel.h"
|
||||
|
||||
#include "handinterface.h"
|
||||
|
||||
#include "playerinterface.h"
|
||||
#include "boardinterface.h"
|
||||
|
||||
@@ -408,6 +408,7 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent)
|
||||
|
||||
}
|
||||
|
||||
mainWindowImpl::~mainWindowImpl() {}
|
||||
|
||||
void mainWindowImpl::callNewGameDialog() {
|
||||
|
||||
@@ -1368,11 +1369,14 @@ void mainWindowImpl::postRiverRunAnimation3() {
|
||||
//Alle Winner erhellen und "Winner" schreiben
|
||||
for(i=0; i<maxQuantityPlayers; i++) {
|
||||
if(actualHand->getPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyCardsValueInt() == actualHand->getRiver()->getHighestCardsValue() ) {
|
||||
|
||||
QPalette tempPalette = groupBoxArray[i]->palette();
|
||||
tempPalette.setColor(QPalette::Window, highlight);
|
||||
groupBoxArray[i]->setPalette(tempPalette);
|
||||
actionLabelArray[i]->setText("<p align='center'><b>- Winner -</b></p>");
|
||||
|
||||
myLog->logPlayerWinsMsg(i);
|
||||
|
||||
//nicht gewonnene Karten ausblenden
|
||||
if ( actualHand->getActivePlayersCounter() != 1 && myConfig->readConfigInt("ShowFadeOutCardsAnimation")) {
|
||||
|
||||
|
||||
@@ -27,13 +27,15 @@
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
#include "handinterface.h"
|
||||
|
||||
class Game;
|
||||
class Session;
|
||||
class Log;
|
||||
class ConfigFile;
|
||||
|
||||
class BoardInterface;
|
||||
class HandInterface;
|
||||
// class HandInterface;
|
||||
class PlayerInterface;
|
||||
|
||||
class MyCardsPixmapLabel;
|
||||
@@ -46,12 +48,18 @@ Q_OBJECT
|
||||
public:
|
||||
mainWindowImpl(QMainWindow *parent = 0 );
|
||||
|
||||
~mainWindowImpl();
|
||||
|
||||
void setGame(Game*);
|
||||
void setHand(HandInterface*);
|
||||
void setSession(Session*);
|
||||
void setLog(Log*);
|
||||
|
||||
int getMaxQuantityPlayers() const { return maxQuantityPlayers; }
|
||||
|
||||
void setActualHand(HandInterface* theValue) { actualHand = theValue;}
|
||||
HandInterface* getActualHand() const { return actualHand;}
|
||||
|
||||
|
||||
//refresh-Funktionen
|
||||
void refreshSet();
|
||||
@@ -156,6 +164,9 @@ public slots:
|
||||
|
||||
void paintStartSplash();
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Game *actualGame;
|
||||
|
||||
Reference in New Issue
Block a user