BeRo refactoring

This commit is contained in:
doitux
2007-08-07 13:07:39 +00:00
parent 2f76bb82f9
commit c34f683c41
24 changed files with 425 additions and 1337 deletions
+24 -3
View File
@@ -12,6 +12,10 @@
#ifndef LOCALBERO_H
#define LOCALBERO_H
#include <iostream>
#include "game_defs.h"
#include "berointerface.h"
#include "handinterface.h"
@@ -20,7 +24,7 @@
*/
class LocalBeRo : public BeRoInterface{
public:
LocalBeRo(HandInterface* hi, int id, int qP, int dP, int sB);
LocalBeRo(HandInterface* hi, int id, int qP, int dP, int sB, GameState gS);
~LocalBeRo();
@@ -29,6 +33,25 @@ public:
int getHighestCardsValue() const {return 0;}
void setHighestCardsValue(int theValue) {}
void setPlayersTurn(int theValue) { playersTurn = theValue; }
int getPlayersTurn() const { return playersTurn; }
void setHighestSet(int theValue) { highestSet = theValue; }
int getHighestSet() const { return highestSet;}
void setFirstRound(bool theValue) { firstRound = theValue;}
bool getFirstRound() const { return firstRound;}
void setSmallBlindPosition(int theValue) { smallBlindPosition = theValue;}
int getSmallBlindPosition() const { return smallBlindPosition; }
void setSmallBlind(int theValue) { smallBlind = theValue; }
int getSmallBlind() const { return smallBlind; }
void resetFirstRun() { firstRun = false; }
void nextPlayer();
void run();
//only until bero refactoring is over
@@ -37,8 +60,6 @@ public:
void riverRun() {}
void turnRun() {}
void postRiverRun() {}
void resetFirstRun() {}
protected: