more polymorphie steps for BeRo
This commit is contained in:
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -108,6 +108,13 @@ ClientHand::getRiver() const
|
||||
return myRiver;
|
||||
}
|
||||
|
||||
BeRoInterface*
|
||||
ClientHand::getCurrentBeRo() const
|
||||
{
|
||||
return myBeRo;
|
||||
}
|
||||
|
||||
|
||||
GuiInterface*
|
||||
ClientHand::getGuiInterface() const
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user