more polymorphie steps for BeRo (sry lotodore for last buggy rev)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//
|
||||
#include "clientberofactory.h"
|
||||
#include "berointerface.h"
|
||||
|
||||
ClientBeRoFactory::ClientBeRoFactory(HandInterface* hi, int id, int aP, int dP, int sB)
|
||||
: BeRoFactoryInterface()
|
||||
@@ -22,4 +23,6 @@ ClientBeRoFactory::~ClientBeRoFactory()
|
||||
}
|
||||
|
||||
|
||||
BeRoInterface* ClientBeRoFactory::switchRounds(int currentRound) { return NULL;}
|
||||
BeRoInterface* ClientBeRoFactory::switchRounds(BeRoInterface* currentBeRo, int currentRound) { return NULL;}
|
||||
|
||||
BeRoInterface* ClientBeRoFactory::createBeRoPreflop() { return NULL; }
|
||||
|
||||
@@ -25,7 +25,9 @@ public:
|
||||
|
||||
~ClientBeRoFactory();
|
||||
|
||||
BeRoInterface* switchRounds(int);
|
||||
BeRoInterface* switchRounds(BeRoInterface*, int);
|
||||
|
||||
BeRoInterface* createBeRoPreflop();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -78,3 +78,4 @@ BeRoFactoryInterface* ClientEngineFactory::createBeRoFactory(HandInterface* hi,
|
||||
{
|
||||
return new ClientBeRoFactory(hi, id, aP, dP, sB);
|
||||
}
|
||||
|
||||
|
||||
@@ -90,22 +90,22 @@ ClientHand::getPreflop() const
|
||||
return myBeRo;
|
||||
}
|
||||
|
||||
FlopInterface*
|
||||
BeRoInterface*
|
||||
ClientHand::getFlop() const
|
||||
{
|
||||
return myFlop;
|
||||
return myBeRo;
|
||||
}
|
||||
|
||||
TurnInterface*
|
||||
BeRoInterface*
|
||||
ClientHand::getTurn() const
|
||||
{
|
||||
return myTurn;
|
||||
return myBeRo;
|
||||
}
|
||||
|
||||
RiverInterface*
|
||||
BeRoInterface*
|
||||
ClientHand::getRiver() const
|
||||
{
|
||||
return myRiver;
|
||||
return myBeRo;
|
||||
}
|
||||
|
||||
BeRoInterface*
|
||||
|
||||
@@ -43,9 +43,9 @@ public:
|
||||
PlayerInterface** getPlayerArray() const;
|
||||
BoardInterface* getBoard() const;
|
||||
BeRoInterface* getPreflop() const;
|
||||
FlopInterface* getFlop() const;
|
||||
TurnInterface* getTurn() const;
|
||||
RiverInterface* getRiver() const;
|
||||
BeRoInterface* getFlop() const;
|
||||
BeRoInterface* getTurn() const;
|
||||
BeRoInterface* getRiver() const;
|
||||
GuiInterface* getGuiInterface() const;
|
||||
BeRoInterface* getCurrentBeRo() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user