2007-08-04 01:30:59 +00:00
|
|
|
//
|
|
|
|
|
// C++ Interface: localbero
|
|
|
|
|
//
|
|
|
|
|
// Description:
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
|
|
|
|
|
//
|
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
#ifndef LOCALBERO_H
|
|
|
|
|
#define LOCALBERO_H
|
|
|
|
|
|
2007-08-07 13:07:39 +00:00
|
|
|
|
|
|
|
|
#include <iostream>
|
2007-08-29 19:27:12 +00:00
|
|
|
#include "game_defs.h"
|
2007-08-07 13:07:39 +00:00
|
|
|
|
2007-08-04 01:30:59 +00:00
|
|
|
#include "berointerface.h"
|
2007-08-07 00:05:29 +00:00
|
|
|
#include "handinterface.h"
|
2007-08-04 01:30:59 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@author FThauer FHammer <webmaster@pokerth.net>
|
|
|
|
|
*/
|
|
|
|
|
class LocalBeRo : public BeRoInterface{
|
|
|
|
|
public:
|
2007-08-07 20:37:34 +00:00
|
|
|
LocalBeRo(HandInterface* hi, int id, int qP, int dP, int sB, GameState gS);
|
|
|
|
|
~LocalBeRo();
|
2007-08-04 01:30:59 +00:00
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
GameState getMyBeRoID() const { return myBeRoID; }
|
2007-08-07 23:59:34 +00:00
|
|
|
|
2007-08-10 00:15:51 +00:00
|
|
|
int getHighestCardsValue() const { std::cout << "getHighestCardsValue() in wrong BeRo" << std::endl; return 0; }
|
|
|
|
|
void setHighestCardsValue(int theValue) { }
|
2007-08-05 13:07:23 +00:00
|
|
|
|
2007-08-07 23:59:34 +00:00
|
|
|
void resetFirstRun() { firstRun = false; }
|
|
|
|
|
|
|
|
|
|
void nextPlayer();
|
|
|
|
|
void run();
|
|
|
|
|
|
2007-08-22 20:49:07 +00:00
|
|
|
void postRiverRun() {};
|
2007-09-02 19:20:49 +00:00
|
|
|
|
2007-08-22 20:49:07 +00:00
|
|
|
|
2007-08-07 23:59:34 +00:00
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
HandInterface* getMyHand() const { return myHand; }
|
|
|
|
|
|
|
|
|
|
int getDealerPosition() const {return dealerPosition; }
|
|
|
|
|
void setDealerPosition(int theValue) { dealerPosition = theValue; }
|
|
|
|
|
|
2007-08-07 13:07:39 +00:00
|
|
|
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; }
|
2007-08-11 14:36:20 +00:00
|
|
|
|
|
|
|
|
void setLastActionPlayer ( int theValue ) { lastActionPlayer = theValue; }
|
|
|
|
|
int getLastActionPlayer() const { return lastActionPlayer; }
|
2007-08-07 23:59:34 +00:00
|
|
|
|
2007-09-02 19:20:49 +00:00
|
|
|
void setMinimumRaise ( int theValue ) { minimumRaise = theValue; }
|
|
|
|
|
int getMinimumRaise() const { return minimumRaise; }
|
|
|
|
|
|
2007-08-07 13:07:39 +00:00
|
|
|
|
2007-08-07 23:59:34 +00:00
|
|
|
private:
|
2007-08-05 13:07:23 +00:00
|
|
|
|
2007-08-07 00:05:29 +00:00
|
|
|
HandInterface* myHand;
|
|
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
const GameState myBeRoID;
|
2007-08-07 00:05:29 +00:00
|
|
|
int myID;
|
2007-08-07 20:37:34 +00:00
|
|
|
int actualQuantityPlayers;
|
2007-08-07 00:05:29 +00:00
|
|
|
int dealerPosition;
|
|
|
|
|
int smallBlindPosition;
|
|
|
|
|
|
|
|
|
|
int smallBlind;
|
|
|
|
|
int highestSet;
|
2007-09-02 19:20:49 +00:00
|
|
|
int minimumRaise;
|
2007-08-07 00:05:29 +00:00
|
|
|
|
|
|
|
|
bool firstRun;
|
|
|
|
|
bool firstRound;
|
|
|
|
|
bool firstHeadsUpRound;
|
|
|
|
|
int playersTurn;
|
|
|
|
|
|
|
|
|
|
bool logBoardCardsDone;
|
|
|
|
|
|
2007-08-11 14:36:20 +00:00
|
|
|
int lastActionPlayer;
|
|
|
|
|
|
2007-08-05 13:07:23 +00:00
|
|
|
|
2007-08-04 01:30:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|