more polymorphie steps for BeRo - local game --> unstable

This commit is contained in:
doitux
2007-08-04 21:30:20 +00:00
parent 1f00b3f458
commit 07f8a2aaeb
19 changed files with 87 additions and 45 deletions
+3 -2
View File
@@ -172,7 +172,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
myTurn = myFactory->createTurn(this, myID, actualQuantityPlayers, dealerPosition, smallBlind);
myRiver = myFactory->createRiver(this, myID, actualQuantityPlayers, dealerPosition, smallBlind);
myBeRo = myFactory->createBeRo();
myBeRoFactory = myFactory->createBeRoFactory(this);
myBeRo = myBeRoFactory->switchRounds();
}
@@ -324,7 +325,7 @@ void LocalHand::switchRounds() {
if(playerArray[i]->getMyAction() != 1 && playerArray[i]->getMyAction() != 6 && playerArray[i]->getMyActiveStatus() == 1) {
tempHighestSet = 0;
switch (actualRound) {
case 0: {tempHighestSet = myPreflop->getHighestSet();}
case 0: {tempHighestSet = myBeRo->getHighestSet();}
break;
case 1: {tempHighestSet = myFlop->getHighestSet();}
break;