more polymorphie steps for BeRo (sry lotodore for last buggy rev)

This commit is contained in:
doitux
2007-08-05 23:57:16 +00:00
parent b68b8d48dd
commit e612b77b1b
18 changed files with 93 additions and 102 deletions
@@ -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);
}
+6 -6
View File
@@ -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*
+3 -3
View File
@@ -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;