Some header file changes.
This commit is contained in:
@@ -20,15 +20,8 @@
|
|||||||
#ifndef BEROINTERFACE_H
|
#ifndef BEROINTERFACE_H
|
||||||
#define BEROINTERFACE_H
|
#define BEROINTERFACE_H
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
#include <list>
|
|
||||||
|
|
||||||
#include <game_defs.h>
|
#include <game_defs.h>
|
||||||
|
#include <engine_defs.h>
|
||||||
class PlayerInterface;
|
|
||||||
|
|
||||||
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
|
||||||
|
|
||||||
class BeRoInterface{
|
class BeRoInterface{
|
||||||
public:
|
public:
|
||||||
@@ -58,8 +51,8 @@ public:
|
|||||||
virtual void setMinimumRaise (int) =0;
|
virtual void setMinimumRaise (int) =0;
|
||||||
virtual int getMinimumRaise() const =0;
|
virtual int getMinimumRaise() const =0;
|
||||||
|
|
||||||
virtual void setFullBetRule (bool) =0;
|
virtual void setFullBetRule (bool) =0;
|
||||||
virtual bool getFullBetRule() const =0;
|
virtual bool getFullBetRule() const =0;
|
||||||
|
|
||||||
virtual bool getFirstRound() const =0;
|
virtual bool getFirstRound() const =0;
|
||||||
|
|
||||||
|
|||||||
@@ -20,22 +20,15 @@
|
|||||||
#ifndef BOARDINTERFACE_H
|
#ifndef BOARDINTERFACE_H
|
||||||
#define BOARDINTERFACE_H
|
#define BOARDINTERFACE_H
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <engine_defs.h>
|
||||||
#include <vector>
|
|
||||||
#include <list>
|
|
||||||
|
|
||||||
class PlayerInterface;
|
|
||||||
class HandInterface;
|
class HandInterface;
|
||||||
|
|
||||||
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
|
|
||||||
|
|
||||||
class BoardInterface {
|
class BoardInterface {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual ~BoardInterface();
|
virtual ~BoardInterface();
|
||||||
//
|
//
|
||||||
virtual void setPlayerLists(PlayerList, PlayerList, PlayerList) =0;
|
virtual void setPlayerLists(PlayerList, PlayerList, PlayerList) =0;
|
||||||
virtual void setHand(HandInterface*) =0;
|
virtual void setHand(HandInterface*) =0;
|
||||||
@@ -52,13 +45,13 @@ public:
|
|||||||
virtual void collectPot() =0;
|
virtual void collectPot() =0;
|
||||||
|
|
||||||
virtual void distributePot() =0;
|
virtual void distributePot() =0;
|
||||||
virtual void determinePlayerNeedToShowCards() =0;
|
virtual void determinePlayerNeedToShowCards() =0;
|
||||||
|
|
||||||
virtual std::list<unsigned> getWinners() const =0;
|
virtual std::list<unsigned> getWinners() const =0;
|
||||||
virtual void setWinners(const std::list<unsigned> &winners) =0;
|
virtual void setWinners(const std::list<unsigned> &winners) =0;
|
||||||
|
|
||||||
virtual std::list<unsigned> getPlayerNeedToShowCards() const =0;
|
virtual std::list<unsigned> getPlayerNeedToShowCards() const =0;
|
||||||
virtual void setPlayerNeedToShowCards(const std::list<unsigned> &playerNeedToShowCards) =0;
|
virtual void setPlayerNeedToShowCards(const std::list<unsigned> &playerNeedToShowCards) =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 ENGINE_DEFS_H
|
||||||
|
#define ENGINE_DEFS_H
|
||||||
|
|
||||||
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <list>
|
||||||
|
|
||||||
|
class PlayerInterface;
|
||||||
|
|
||||||
|
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
||||||
|
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
||||||
|
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -39,8 +39,8 @@ public:
|
|||||||
void setMinimumRaise ( int theValue ) { minimumRaise = theValue; }
|
void setMinimumRaise ( int theValue ) { minimumRaise = theValue; }
|
||||||
int getMinimumRaise() const { return minimumRaise; }
|
int getMinimumRaise() const { return minimumRaise; }
|
||||||
|
|
||||||
void setFullBetRule ( bool theValue ) { fullBetRule = theValue; }
|
void setFullBetRule ( bool theValue ) { fullBetRule = theValue; }
|
||||||
bool getFullBetRule() const { return fullBetRule; }
|
bool getFullBetRule() const { return fullBetRule; }
|
||||||
|
|
||||||
void skipFirstRunGui() { firstRunGui = false; }
|
void skipFirstRunGui() { firstRunGui = false; }
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,6 @@
|
|||||||
#ifndef LOCALHAND_H
|
#ifndef LOCALHAND_H
|
||||||
#define LOCALHAND_H
|
#define LOCALHAND_H
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
|
|
||||||
#include <enginefactory.h>
|
#include <enginefactory.h>
|
||||||
#include <guiinterface.h>
|
#include <guiinterface.h>
|
||||||
#include <boardinterface.h>
|
#include <boardinterface.h>
|
||||||
@@ -31,6 +27,8 @@
|
|||||||
#include <handinterface.h>
|
#include <handinterface.h>
|
||||||
#include <berointerface.h>
|
#include <berointerface.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
class Log;
|
class Log;
|
||||||
|
|
||||||
class LocalHand : public HandInterface{
|
class LocalHand : public HandInterface{
|
||||||
|
|||||||
+4
-4
@@ -18,14 +18,14 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include <sqlite3.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include "configfile.h"
|
#include "configfile.h"
|
||||||
#include "game_defs.h"
|
#include "game_defs.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "playerinterface.h"
|
#include "playerinterface.h"
|
||||||
|
#include <sqlite3.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <boost/lexical_cast.hpp>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
+1
-8
@@ -20,16 +20,9 @@
|
|||||||
#ifndef LOG_H
|
#ifndef LOG_H
|
||||||
#define LOG_H
|
#define LOG_H
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <engine_defs.h>
|
||||||
#include <list>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
struct sqlite3;
|
struct sqlite3;
|
||||||
class PlayerInterface;
|
|
||||||
|
|
||||||
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
|
|
||||||
|
|
||||||
class Log
|
class Log
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ public:
|
|||||||
void setMinimumRaise ( int theValue );
|
void setMinimumRaise ( int theValue );
|
||||||
int getMinimumRaise() const;
|
int getMinimumRaise() const;
|
||||||
|
|
||||||
void setFullBetRule ( bool theValue );
|
void setFullBetRule ( bool theValue );
|
||||||
bool getFullBetRule() const;
|
bool getFullBetRule() const;
|
||||||
|
|
||||||
void skipFirstRunGui();
|
void skipFirstRunGui();
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ private:
|
|||||||
int smallBlind;
|
int smallBlind;
|
||||||
|
|
||||||
int minimumRaise;
|
int minimumRaise;
|
||||||
bool fullBetRule;
|
bool fullBetRule;
|
||||||
|
|
||||||
int lastActionPlayer;
|
int lastActionPlayer;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ class ClientHand : public HandInterface
|
|||||||
void setLastPlayersTurn ( int theValue );
|
void setLastPlayersTurn ( int theValue );
|
||||||
int getLastPlayersTurn() const;
|
int getLastPlayersTurn() const;
|
||||||
|
|
||||||
void setLastActionPlayer ( unsigned theValue );
|
void setLastActionPlayer ( unsigned theValue );
|
||||||
unsigned getLastActionPlayer() const;
|
unsigned getLastActionPlayer() const;
|
||||||
|
|
||||||
void setCardsShown ( bool theValue );
|
void setCardsShown ( bool theValue );
|
||||||
bool getCardsShown() const;
|
bool getCardsShown() const;
|
||||||
|
|||||||
+1
-5
@@ -20,7 +20,7 @@
|
|||||||
#ifndef GAME_H
|
#ifndef GAME_H
|
||||||
#define GAME_H
|
#define GAME_H
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <engine_defs.h>
|
||||||
#include "gamedata.h"
|
#include "gamedata.h"
|
||||||
#include "playerdata.h"
|
#include "playerdata.h"
|
||||||
|
|
||||||
@@ -29,15 +29,11 @@
|
|||||||
class GuiInterface;
|
class GuiInterface;
|
||||||
class Log;
|
class Log;
|
||||||
class HandInterface;
|
class HandInterface;
|
||||||
class PlayerInterface;
|
|
||||||
class BoardInterface;
|
class BoardInterface;
|
||||||
class EngineFactory;
|
class EngineFactory;
|
||||||
struct GameData;
|
struct GameData;
|
||||||
struct StartData;
|
struct StartData;
|
||||||
|
|
||||||
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
|
||||||
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
|
|
||||||
|
|
||||||
class Game {
|
class Game {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user