104 lines
3.0 KiB
C++
104 lines
3.0 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2006 by FThauer FHammer *
|
|
* f.thauer@web.de *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the *
|
|
* Free Software Foundation, Inc., *
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
***************************************************************************/
|
|
#ifndef GUIWRAPPER_H
|
|
#define GUIWRAPPER_H
|
|
|
|
#include <guiinterface.h>
|
|
|
|
#include "log.h"
|
|
#include "mainwindowimpl.h"
|
|
#include "connecttoserverdialogimpl.h"
|
|
#include "configfile.h"
|
|
|
|
#include <string>
|
|
#include <iostream>
|
|
|
|
#include "handinterface.h"
|
|
#include "session.h"
|
|
#include "game.h"
|
|
|
|
class GuiWrapper : public GuiInterface
|
|
{
|
|
public:
|
|
GuiWrapper();
|
|
|
|
~GuiWrapper();
|
|
|
|
void setGame(Game*);
|
|
void setHand(HandInterface*);
|
|
void setSession(Session*);
|
|
|
|
int getMaxQuantityPlayers() const;
|
|
|
|
void refreshSet() const;
|
|
void refreshChangePlayer() const;
|
|
void refreshPot() const;
|
|
void refreshGroupbox() const;
|
|
void refreshAll() const;
|
|
void refreshPlayerName() const;
|
|
|
|
void dealHoleCards() const;
|
|
void dealFlopCards() const;
|
|
void dealTurnCard() const;
|
|
void dealRiverCard() const;
|
|
|
|
void highlightRoundLabel(std::string round) const;
|
|
|
|
void nextPlayerAnimation() const;
|
|
|
|
void preflopAnimation1() const;
|
|
void preflopAnimation2() const;
|
|
|
|
void flopAnimation1() const;
|
|
void flopAnimation2() const;
|
|
|
|
void turnAnimation1() const;
|
|
void turnAnimation2() const;
|
|
|
|
void riverAnimation1() const;
|
|
void riverAnimation2() const;
|
|
|
|
void postRiverAnimation1() const;
|
|
void postRiverRunAnimation1() const;
|
|
|
|
void flipHolecardsAllIn() const;
|
|
|
|
void nextRoundCleanGui() const;
|
|
|
|
void meInAction() const;
|
|
|
|
void logPlayerActionMsg(std::string playerName, int action, int setValue) ;
|
|
void logNewGameHandMsg(int gameID, int handID) ;
|
|
|
|
void showActionConnectToServerDialog(int actionID);
|
|
void showErrorConnectToServerDialog(int errorID, int osErrorID);
|
|
|
|
private:
|
|
|
|
Log *myLog;
|
|
mainWindowImpl *myW;
|
|
ConfigFile *myConfig;
|
|
|
|
connectToServerDialogImpl *myConnectToServerDialog;
|
|
|
|
};
|
|
|
|
#endif
|