BeRo refactoring
This commit is contained in:
@@ -38,6 +38,7 @@ public:
|
|||||||
|
|
||||||
virtual void nextPlayer() =0;
|
virtual void nextPlayer() =0;
|
||||||
virtual void run() =0;
|
virtual void run() =0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ public:
|
|||||||
virtual void collectSets() =0;
|
virtual void collectSets() =0;
|
||||||
virtual void collectPot() =0;
|
virtual void collectPot() =0;
|
||||||
|
|
||||||
|
virtual void distributePot() =0;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ void LocalBeRoPostRiver::run() {
|
|||||||
|
|
||||||
// Pot-Verteilung
|
// Pot-Verteilung
|
||||||
distributePot();
|
distributePot();
|
||||||
|
getMyHand()->getBoard()->distributePot();
|
||||||
|
|
||||||
//Pot auf 0 setzen
|
//Pot auf 0 setzen
|
||||||
getMyHand()->getBoard()->setPot(0);
|
getMyHand()->getBoard()->setPot(0);
|
||||||
|
|||||||
@@ -52,4 +52,9 @@ void LocalBoard::collectPot() {
|
|||||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
|
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LocalBoard::distributePot() {
|
||||||
|
|
||||||
|
vector<int> playerSets;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
#ifndef LOCALBOARD_H
|
#ifndef LOCALBOARD_H
|
||||||
#define LOCALBOARD_H
|
#define LOCALBOARD_H
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include <boardinterface.h>
|
#include <boardinterface.h>
|
||||||
|
|
||||||
class PlayerInterface;
|
class PlayerInterface;
|
||||||
@@ -44,6 +46,8 @@ public:
|
|||||||
|
|
||||||
void collectSets() ;
|
void collectSets() ;
|
||||||
void collectPot() ;
|
void collectPot() ;
|
||||||
|
|
||||||
|
void distributePot();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -108,4 +108,10 @@ ClientBoard::collectPot()
|
|||||||
sets = 0;
|
sets = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ClientBoard::distributePot()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ public:
|
|||||||
void collectSets();
|
void collectSets();
|
||||||
void collectPot();
|
void collectPot();
|
||||||
|
|
||||||
|
void distributePot();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable boost::recursive_mutex m_syncMutex;
|
mutable boost::recursive_mutex m_syncMutex;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user