Files
pokerth/src/engine/local_engine/localbero.h
T

79 lines
1.6 KiB
C++
Raw Normal View History

//
// 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>
#include "berointerface.h"
2007-08-07 00:05:29 +00:00
#include "handinterface.h"
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class LocalBeRo : public BeRoInterface{
public:
LocalBeRo(HandInterface* hi, int id, int qP, int dP, int sB, GameState gS);
~LocalBeRo();
GameState getMyBeRoID() const { return myBeRoID; }
int getHighestCardsValue() const {return 0;}
void setHighestCardsValue(int theValue) {}
2007-08-05 13:07:23 +00:00
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; }
void resetFirstRun() { firstRun = false; }
void nextPlayer();
2007-08-07 00:05:29 +00:00
void run();
void postRiverRun() {}
2007-08-05 13:07:23 +00:00
protected:
2007-08-07 00:05:29 +00:00
HandInterface* myHand;
const GameState myBeRoID;
2007-08-07 00:05:29 +00:00
int myID;
int actualQuantityPlayers;
2007-08-07 00:05:29 +00:00
int dealerPosition;
int smallBlindPosition;
int smallBlind;
int highestSet;
bool firstRun;
bool firstRound;
bool firstHeadsUpRound;
int playersTurn;
bool logBoardCardsDone;
2007-08-05 13:07:23 +00:00
};
#endif