BeRo refactoring

This commit is contained in:
doitux
2007-08-09 18:02:58 +00:00
parent 6eebcc943f
commit 3742f15db2
7 changed files with 21 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ public:
virtual void nextPlayer() =0;
virtual void run() =0;
};
#endif
+2
View File
@@ -43,6 +43,8 @@ public:
virtual void collectSets() =0;
virtual void collectPot() =0;
virtual void distributePot() =0;
};
@@ -65,6 +65,7 @@ void LocalBeRoPostRiver::run() {
// Pot-Verteilung
distributePot();
getMyHand()->getBoard()->distributePot();
//Pot auf 0 setzen
getMyHand()->getBoard()->setPot(0);
+5
View File
@@ -52,4 +52,9 @@ void LocalBoard::collectPot() {
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
}
void LocalBoard::distributePot() {
vector<int> playerSets;
}
+4
View File
@@ -20,6 +20,8 @@
#ifndef LOCALBOARD_H
#define LOCALBOARD_H
#include <vector>
#include <boardinterface.h>
class PlayerInterface;
@@ -44,6 +46,8 @@ public:
void collectSets() ;
void collectPot() ;
void distributePot();
private:
@@ -108,4 +108,10 @@ ClientBoard::collectPot()
sets = 0;
}
void
ClientBoard::distributePot()
{
}
+2
View File
@@ -46,6 +46,8 @@ public:
void collectSets();
void collectPot();
void distributePot();
private:
mutable boost::recursive_mutex m_syncMutex;