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

109 lines
2.7 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>
2007-08-29 19:27:12 +00:00
#include "game_defs.h"
2007-08-07 13:07:39 +00:00
#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 dP, int sB, GameState gS);
~LocalBeRo();
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-09-02 21:34:04 +00:00
void setMinimumRaise ( int theValue ) { minimumRaise = theValue; }
int getMinimumRaise() const { return minimumRaise; }
2007-08-07 23:59:34 +00:00
void resetFirstRun() { firstRun = false; }
void nextPlayer();
void run();
void postRiverRun() {};
2007-09-02 19:20:49 +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 setCurrentPlayersTurnIt(PlayerListIterator theValue) { currentPlayersTurnIt = theValue; }
PlayerListIterator getCurrentPlayersTurnIt() const { return currentPlayersTurnIt; }
void setLastPlayersTurnIt(PlayerListIterator theValue) { lastPlayersTurnIt = theValue; }
PlayerListIterator getLastPlayersTurnIt() const { return lastPlayersTurnIt; }
2007-08-07 13:07:39 +00:00
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 21:34:04 +00:00
2007-09-02 19:20:49 +00:00
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;
const GameState myBeRoID;
2007-08-07 00:05:29 +00:00
int myID;
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; // TODO -> delete
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList
2007-08-07 00:05:29 +00:00
bool logBoardCardsDone;
2007-08-11 14:36:20 +00:00
int lastActionPlayer;
2007-08-05 13:07:23 +00:00
};
#endif