more polymorphie steps for BeRo

This commit is contained in:
doitux
2007-08-05 13:07:23 +00:00
parent ce61172ab3
commit b68b8d48dd
29 changed files with 1736 additions and 41 deletions
+6
View File
@@ -24,6 +24,12 @@ public:
~ClientBeRo();
int getMyBeRoID() const { return myBeRoID; }
protected:
int myBeRoID;
};
#endif
@@ -22,4 +22,4 @@ ClientBeRoFactory::~ClientBeRoFactory()
}
BeRoInterface* ClientBeRoFactory::switchRounds() { return NULL;}
BeRoInterface* ClientBeRoFactory::switchRounds(int currentRound) { return NULL;}
@@ -25,7 +25,7 @@ public:
~ClientBeRoFactory();
BeRoInterface* switchRounds();
BeRoInterface* switchRounds(int);
};
+7
View File
@@ -108,6 +108,13 @@ ClientHand::getRiver() const
return myRiver;
}
BeRoInterface*
ClientHand::getCurrentBeRo() const
{
return myBeRo;
}
GuiInterface*
ClientHand::getGuiInterface() const
{
+1
View File
@@ -47,6 +47,7 @@ public:
TurnInterface* getTurn() const;
RiverInterface* getRiver() const;
GuiInterface* getGuiInterface() const;
BeRoInterface* getCurrentBeRo() const;
void setMyID(int theValue);
int getMyID() const;
@@ -62,20 +62,6 @@ ClientPreflop::getHighestSet() const
return highestSet;
}
void
ClientPreflop::setPreflopFirstRound(bool theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
preflopFirstRound = theValue;
}
bool
ClientPreflop::setPreflopFirstRound() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return preflopFirstRound;
}
void
ClientPreflop::preflopRun()
{
@@ -36,9 +36,6 @@ public:
void setHighestSet(int theValue);
int getHighestSet() const;
void setPreflopFirstRound(bool theValue);
bool setPreflopFirstRound() const;
void preflopRun();
void nextPlayer2();