This commit is contained in:
@@ -28,13 +28,13 @@
|
|||||||
#include "turninterface.h"
|
#include "turninterface.h"
|
||||||
#include "riverinterface.h"
|
#include "riverinterface.h"
|
||||||
|
|
||||||
class HandInterface;
|
// class HandInterface;
|
||||||
class BoardInterface;
|
// class BoardInterface;
|
||||||
class PlayerInterface;
|
// class PlayerInterface;
|
||||||
class PreflopInterface;
|
// class PreflopInterface;
|
||||||
class FlopInterface;
|
// class FlopInterface;
|
||||||
class TurnInterface;
|
// class TurnInterface;
|
||||||
class RiverInterface;
|
// class RiverInterface;
|
||||||
|
|
||||||
class EngineFactory{
|
class EngineFactory{
|
||||||
public:
|
public:
|
||||||
@@ -44,6 +44,10 @@ public:
|
|||||||
virtual HandInterface* createHand(GuiInterface *g, BoardInterface *b, PlayerInterface **p, int id, int qP, int dP, int sB,int sC) =0;
|
virtual HandInterface* createHand(GuiInterface *g, BoardInterface *b, PlayerInterface **p, int id, int qP, int dP, int sB,int sC) =0;
|
||||||
virtual BoardInterface* createBoard() =0;
|
virtual BoardInterface* createBoard() =0;
|
||||||
virtual PlayerInterface* createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB) =0;
|
virtual PlayerInterface* createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB) =0;
|
||||||
|
virtual PreflopInterface* createPreflop(HandInterface* hi, int id, int qP, int dP, int sB) =0;
|
||||||
|
virtual FlopInterface* createFlop(HandInterface* hi, int id, int qP, int dP, int sB) =0;
|
||||||
|
virtual TurnInterface* createTurn(HandInterface* hi, int id, int qP, int dP, int sB) =0;
|
||||||
|
virtual RiverInterface* createRiver(HandInterface* hi, int id, int qP, int dP, int sB) =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,6 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "flopinterface.h"
|
#include "flopinterface.h"
|
||||||
|
|
||||||
FlopInterface::FlopInterface()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
FlopInterface::~FlopInterface()
|
FlopInterface::~FlopInterface()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,29 @@
|
|||||||
#ifndef FLOPINTERFACE_H
|
#ifndef FLOPINTERFACE_H
|
||||||
#define FLOPINTERFACE_H
|
#define FLOPINTERFACE_H
|
||||||
|
|
||||||
/**
|
|
||||||
@author FThauer FHammer <f.thauer@web.de>
|
|
||||||
*/
|
|
||||||
class FlopInterface{
|
class FlopInterface{
|
||||||
public:
|
public:
|
||||||
FlopInterface();
|
|
||||||
|
|
||||||
~FlopInterface();
|
|
||||||
|
virtual ~FlopInterface();
|
||||||
|
|
||||||
|
virtual void setPlayersTurn(const int& theValue) =0;
|
||||||
|
virtual int getPlayersTurn() const =0;
|
||||||
|
|
||||||
|
virtual void setHighestSet(const int& theValue) =0;
|
||||||
|
virtual int getHighestSet() const =0;
|
||||||
|
|
||||||
|
virtual void setFirstFlopRound(bool theValue) =0;
|
||||||
|
virtual bool getFirstFlopRound() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlindPosition(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlindPosition() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlind(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlind() const =0;
|
||||||
|
|
||||||
|
virtual void flopRun() =0;
|
||||||
|
virtual void nextPlayer2() =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
#define HANDINTERFACE_H
|
#define HANDINTERFACE_H
|
||||||
|
|
||||||
#include "guiinterface.h"
|
#include "guiinterface.h"
|
||||||
|
#include "preflopinterface.h"
|
||||||
|
#include "flopinterface.h"
|
||||||
|
#include "turninterface.h"
|
||||||
|
#include "riverinterface.h"
|
||||||
|
|
||||||
class HandInterface{
|
class HandInterface{
|
||||||
public:
|
public:
|
||||||
@@ -29,10 +33,10 @@ public:
|
|||||||
|
|
||||||
virtual PlayerInterface** getPlayerArray() const =0;
|
virtual PlayerInterface** getPlayerArray() const =0;
|
||||||
virtual BoardInterface* getBoard() const =0;
|
virtual BoardInterface* getBoard() const =0;
|
||||||
// virtual LocalPreflop* getPreflop() const =0;
|
virtual PreflopInterface* getPreflop() const =0;
|
||||||
// virtual LocalFlop* getFlop() const =0;
|
virtual FlopInterface* getFlop() const =0;
|
||||||
// virtual LocalTurn* getTurn() const =0;
|
virtual TurnInterface* getTurn() const =0;
|
||||||
// virtual LocalRiver* getRiver() const =0;
|
virtual RiverInterface* getRiver() const =0;
|
||||||
virtual GuiInterface* getGuiInterface() const =0;
|
virtual GuiInterface* getGuiInterface() const =0;
|
||||||
|
|
||||||
virtual void setMyID(const int& theValue) =0;
|
virtual void setMyID(const int& theValue) =0;
|
||||||
|
|||||||
@@ -44,10 +44,10 @@ BoardInterface* LocalEngineFactory::createBoard() { return new LocalBoard; }
|
|||||||
|
|
||||||
PlayerInterface* LocalEngineFactory::createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB) { return new LocalPlayer(b, id, sC, aS, mB); }
|
PlayerInterface* LocalEngineFactory::createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB) { return new LocalPlayer(b, id, sC, aS, mB); }
|
||||||
|
|
||||||
PreflopInterface* LocalEngineFactory::createPreflop() {/* return new LocalPreflop;*/ }
|
PreflopInterface* LocalEngineFactory::createPreflop(HandInterface* hi, int id, int qP, int dP, int sB) { return new LocalPreflop(hi, id, qP, dP, sB); }
|
||||||
|
|
||||||
FlopInterface* LocalEngineFactory::createFlop() { /*return new LocalFlop;*/ }
|
FlopInterface* LocalEngineFactory::createFlop(HandInterface* hi, int id, int qP, int dP, int sB) { return new LocalFlop(hi, id, qP, dP, sB); }
|
||||||
|
|
||||||
TurnInterface* LocalEngineFactory::createTurn() { /*return new LocalTurn;*/ }
|
TurnInterface* LocalEngineFactory::createTurn(HandInterface* hi, int id, int qP, int dP, int sB) { return new LocalTurn(hi, id, qP, dP, sB); }
|
||||||
|
|
||||||
RiverInterface* LocalEngineFactory::createRiver() { /*return new LocalRiver;*/ }
|
RiverInterface* LocalEngineFactory::createRiver(HandInterface* hi, int id, int qP, int dP, int sB) { return new LocalRiver(hi, id, qP, dP, sB); }
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ public:
|
|||||||
HandInterface* createHand(GuiInterface *g, BoardInterface *b, PlayerInterface **p, int id, int qP, int dP, int sB,int sC);
|
HandInterface* createHand(GuiInterface *g, BoardInterface *b, PlayerInterface **p, int id, int qP, int dP, int sB,int sC);
|
||||||
BoardInterface* createBoard();
|
BoardInterface* createBoard();
|
||||||
PlayerInterface* createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB);
|
PlayerInterface* createPlayer(BoardInterface *b, int id, int sC, bool aS, int mB);
|
||||||
PreflopInterface* createPreflop();
|
PreflopInterface* createPreflop(HandInterface* hi, int id, int qP, int dP, int sB);
|
||||||
FlopInterface* createFlop();
|
FlopInterface* createFlop(HandInterface* hi, int id, int qP, int dP, int sB);
|
||||||
TurnInterface* createTurn();
|
TurnInterface* createTurn(HandInterface* hi, int id, int qP, int dP, int sB);
|
||||||
RiverInterface* createRiver();
|
RiverInterface* createRiver(HandInterface* hi, int id, int qP, int dP, int sB);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -18,11 +18,10 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "localflop.h"
|
#include "localflop.h"
|
||||||
#include "localhand.h"
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
LocalFlop::LocalFlop(LocalHand* bR, int id, int qP, int dP, int sB) : myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstFlopRun(1), firstFlopRound(1), playersTurn(dP)
|
LocalFlop::LocalFlop(HandInterface* bR, int id, int qP, int dP, int sB) : FlopInterface(), myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstFlopRun(1), firstFlopRound(1), playersTurn(dP)
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
@@ -20,14 +20,15 @@
|
|||||||
#ifndef LOCALFLOP_H
|
#ifndef LOCALFLOP_H
|
||||||
#define LOCALFLOP_H
|
#define LOCALFLOP_H
|
||||||
|
|
||||||
|
#include "flopinterface.h"
|
||||||
|
#include "handinterface.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class LocalHand;
|
class LocalFlop : public FlopInterface{
|
||||||
|
|
||||||
class LocalFlop {
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LocalFlop(LocalHand*, int, int, int, int);
|
LocalFlop(HandInterface*, int, int, int, int);
|
||||||
|
|
||||||
~LocalFlop();
|
~LocalFlop();
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
LocalHand *myHand;
|
HandInterface *myHand;
|
||||||
|
|
||||||
int myID;
|
int myID;
|
||||||
int actualQuantityPlayers;
|
int actualQuantityPlayers;
|
||||||
|
|||||||
@@ -17,14 +17,15 @@
|
|||||||
* Free Software Foundation, Inc., *
|
* Free Software Foundation, Inc., *
|
||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#ifndef LOCALHAND_H
|
#ifndef HandInterface_H
|
||||||
#define LOCALHAND_H
|
#define HandInterface_H
|
||||||
|
|
||||||
#include "guiinterface.h"
|
#include "guiinterface.h"
|
||||||
|
|
||||||
#include "handinterface.h"
|
#include "handinterface.h"
|
||||||
|
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
|
#include "cardsvalue.h"
|
||||||
#include "localpreflop.h"
|
#include "localpreflop.h"
|
||||||
#include "localflop.h"
|
#include "localflop.h"
|
||||||
#include "localturn.h"
|
#include "localturn.h"
|
||||||
@@ -50,7 +51,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
PlayerInterface** getPlayerArray() const { return playerArray; }
|
PlayerInterface** getPlayerArray() const { return playerArray; }
|
||||||
BoardInterface* getBoard() const { return myBoard; }
|
BoardInterface* getBoard() const { return myBoard; }
|
||||||
LocalPreflop* getPreflop() const { return myPreflop; }
|
LocalPreflop* getPreflop() const { return myPreflop; }
|
||||||
LocalFlop* getFlop() const { return myFlop; }
|
LocalFlop* getFlop() const { return myFlop; }
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
|
|
||||||
class CardsValue;
|
class CardsValue;
|
||||||
class LocalHand;
|
class HandInterface;
|
||||||
class BoardInterface;
|
class BoardInterface;
|
||||||
|
|
||||||
class LocalPlayer : public PlayerInterface{
|
class LocalPlayer : public PlayerInterface{
|
||||||
@@ -38,7 +38,7 @@ public:
|
|||||||
|
|
||||||
~LocalPlayer();
|
~LocalPlayer();
|
||||||
|
|
||||||
void setHand(LocalHand*);
|
void setHand(HandInterface*);
|
||||||
|
|
||||||
void setMyID(const int& theValue) { myID = theValue; }
|
void setMyID(const int& theValue) { myID = theValue; }
|
||||||
int getMyID() const { return myID; }
|
int getMyID() const { return myID; }
|
||||||
@@ -92,7 +92,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LocalHand *actualHand;
|
HandInterface *actualHand;
|
||||||
BoardInterface *actualBoard;
|
BoardInterface *actualBoard;
|
||||||
|
|
||||||
CardsValue *myCardsValue;
|
CardsValue *myCardsValue;
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "localpreflop.h"
|
#include "localpreflop.h"
|
||||||
#include "localhand.h"
|
|
||||||
|
#include "handinterface.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
LocalPreflop::LocalPreflop(LocalHand* bR, int id, int qP, int dP, int sB) : myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), bigBlindPosition(0), smallBlind(sB), highestSet(2*sB), preflopFirstRound(1), playersTurn(0)
|
LocalPreflop::LocalPreflop(HandInterface* bR, int id, int qP, int dP, int sB) : PreflopInterface(), myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), bigBlindPosition(0), smallBlind(sB), highestSet(2*sB), preflopFirstRound(1), playersTurn(0)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
#ifndef LOCALPREFLOP_H
|
#ifndef LOCALPREFLOP_H
|
||||||
#define LOCALPREFLOP_H
|
#define LOCALPREFLOP_H
|
||||||
|
|
||||||
|
#include "preflopinterface.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class LocalHand;
|
class HandInterface;
|
||||||
|
|
||||||
class LocalPreflop {
|
class LocalPreflop : public PreflopInterface{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LocalPreflop(LocalHand*, int, int, int, int);
|
LocalPreflop(HandInterface*, int, int, int, int);
|
||||||
|
|
||||||
~LocalPreflop();
|
~LocalPreflop();
|
||||||
|
|
||||||
@@ -46,7 +48,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LocalHand *myHand;
|
HandInterface *myHand;
|
||||||
|
|
||||||
int myID;
|
int myID;
|
||||||
int actualQuantityPlayers;
|
int actualQuantityPlayers;
|
||||||
|
|||||||
@@ -19,11 +19,10 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "localriver.h"
|
#include "localriver.h"
|
||||||
|
|
||||||
#include "localhand.h"
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
LocalRiver::LocalRiver(LocalHand* bR, int id, int qP, int dP, int sB) : myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstRiverRun(1), firstRiverRound(1), playersTurn(dP), highestCardsValue(0)
|
LocalRiver::LocalRiver(HandInterface* bR, int id, int qP, int dP, int sB) : RiverInterface(), myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstRiverRun(1), firstRiverRound(1), playersTurn(dP), highestCardsValue(0)
|
||||||
|
|
||||||
{ int i;
|
{ int i;
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
#ifndef LOCALRIVER_H
|
#ifndef LOCALRIVER_H
|
||||||
#define LOCALRIVER_H
|
#define LOCALRIVER_H
|
||||||
|
|
||||||
|
#include "riverinterface.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class LocalHand;
|
#include "handinterface.h"
|
||||||
|
|
||||||
class LocalRiver {
|
class LocalRiver : public RiverInterface{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LocalRiver(LocalHand*, int, int, int, int);
|
LocalRiver(HandInterface*, int, int, int, int);
|
||||||
|
|
||||||
~LocalRiver();
|
~LocalRiver();
|
||||||
|
|
||||||
@@ -56,7 +58,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
LocalHand *myHand;
|
HandInterface *myHand;
|
||||||
|
|
||||||
int myID;
|
int myID;
|
||||||
int actualQuantityPlayers;
|
int actualQuantityPlayers;
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "localturn.h"
|
#include "localturn.h"
|
||||||
#include "localhand.h"
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
LocalTurn::LocalTurn(LocalHand* bR, int id, int qP, int dP, int sB) : myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstTurnRun(1), firstTurnRound(1), playersTurn(dP)
|
LocalTurn::LocalTurn(HandInterface* bR, int id, int qP, int dP, int sB) : TurnInterface(), myHand(bR), myID(id), actualQuantityPlayers(qP), dealerPosition(dP), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstTurnRun(1), firstTurnRound(1), playersTurn(dP)
|
||||||
|
|
||||||
{ int i;
|
{ int i;
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
#ifndef LOCALTURN_H
|
#ifndef LOCALTURN_H
|
||||||
#define LOCALTURN_H
|
#define LOCALTURN_H
|
||||||
|
|
||||||
|
#include "turninterface.h"
|
||||||
|
|
||||||
|
#include "handinterface.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class LocalHand;
|
class LocalTurn : public TurnInterface{
|
||||||
|
|
||||||
class LocalTurn {
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LocalTurn(LocalHand*, int, int, int, int);
|
LocalTurn(HandInterface*, int, int, int, int);
|
||||||
|
|
||||||
~LocalTurn();
|
~LocalTurn();
|
||||||
|
|
||||||
@@ -51,7 +53,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
LocalHand *myHand;
|
HandInterface *myHand;
|
||||||
|
|
||||||
int myID;
|
int myID;
|
||||||
int actualQuantityPlayers;
|
int actualQuantityPlayers;
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ public:
|
|||||||
|
|
||||||
virtual ~PreflopInterface();
|
virtual ~PreflopInterface();
|
||||||
|
|
||||||
|
virtual void setPlayersTurn(const int& theValue) =0;
|
||||||
|
virtual int getPlayersTurn() const =0;
|
||||||
|
|
||||||
|
virtual void setHighestSet(const int& theValue) =0;
|
||||||
|
virtual int getHighestSet() const =0;
|
||||||
|
|
||||||
|
virtual void setLocalPreflopFirstRound(bool theValue) =0;
|
||||||
|
virtual bool setLocalPreflopFirstRound() const =0;
|
||||||
|
|
||||||
|
virtual void preflopRun() =0;
|
||||||
|
virtual void nextPlayer2() =0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,11 +19,6 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "riverinterface.h"
|
#include "riverinterface.h"
|
||||||
|
|
||||||
RiverInterface::RiverInterface()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
RiverInterface::~RiverInterface()
|
RiverInterface::~RiverInterface()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,33 @@
|
|||||||
#ifndef RIVERINTERFACE_H
|
#ifndef RIVERINTERFACE_H
|
||||||
#define RIVERINTERFACE_H
|
#define RIVERINTERFACE_H
|
||||||
|
|
||||||
/**
|
|
||||||
@author FThauer FHammer <f.thauer@web.de>
|
|
||||||
*/
|
|
||||||
class RiverInterface{
|
class RiverInterface{
|
||||||
public:
|
public:
|
||||||
RiverInterface();
|
|
||||||
|
|
||||||
~RiverInterface();
|
virtual ~RiverInterface();
|
||||||
|
|
||||||
|
virtual void setPlayersTurn(const int& theValue) =0;
|
||||||
|
virtual int getPlayersTurn() const =0;
|
||||||
|
|
||||||
|
virtual void setHighestSet(const int& theValue) =0;
|
||||||
|
virtual int getHighestSet() const =0;
|
||||||
|
|
||||||
|
virtual void setFirstRiverRound(bool theValue) =0;
|
||||||
|
virtual bool getFirstRiverRound() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlindPosition(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlindPosition() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlind(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlind() const =0;
|
||||||
|
|
||||||
|
virtual void setHighestCardsValue(const int& theValue) =0;
|
||||||
|
virtual int getHighestCardsValue() const =0;
|
||||||
|
|
||||||
|
virtual void riverRun() =0;
|
||||||
|
virtual void postRiverRun() =0;
|
||||||
|
virtual void nextPlayer2() =0;
|
||||||
|
virtual void distributePot() =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,6 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "turninterface.h"
|
#include "turninterface.h"
|
||||||
|
|
||||||
TurnInterface::TurnInterface()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
TurnInterface::~TurnInterface()
|
TurnInterface::~TurnInterface()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,28 @@
|
|||||||
#ifndef TURNINTERFACE_H
|
#ifndef TURNINTERFACE_H
|
||||||
#define TURNINTERFACE_H
|
#define TURNINTERFACE_H
|
||||||
|
|
||||||
/**
|
|
||||||
@author FThauer FHammer <f.thauer@web.de>
|
|
||||||
*/
|
|
||||||
class TurnInterface{
|
class TurnInterface{
|
||||||
public:
|
public:
|
||||||
TurnInterface();
|
virtual ~TurnInterface();
|
||||||
|
|
||||||
~TurnInterface();
|
virtual void setPlayersTurn(const int& theValue) =0;
|
||||||
|
virtual int getPlayersTurn() const =0;
|
||||||
|
|
||||||
|
virtual void setHighestSet(const int& theValue) =0;
|
||||||
|
virtual int getHighestSet() const=0;
|
||||||
|
|
||||||
|
virtual void setFirstTurnRound(bool theValue) =0;
|
||||||
|
virtual bool getFirstTurnRound() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlindPosition(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlindPosition() const =0;
|
||||||
|
|
||||||
|
virtual void setSmallBlind(const int& theValue) =0;
|
||||||
|
virtual int getSmallBlind() const =0;
|
||||||
|
|
||||||
|
virtual void turnRun() =0;
|
||||||
|
virtual void nextPlayer2() =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user