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

120 lines
3.9 KiB
C++
Raw Normal View History

2007-01-13 02:40:33 +00:00
/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
2007-01-14 12:15:45 +00:00
#ifndef HandInterface_H
#define HandInterface_H
2007-01-13 02:40:33 +00:00
2007-01-14 13:23:04 +00:00
#include "enginefactory.h"
2007-01-13 22:29:17 +00:00
#include "handinterface.h"
2007-01-14 13:23:04 +00:00
#include "guiinterface.h"
2007-01-13 22:29:17 +00:00
2007-01-13 02:40:33 +00:00
#include "tools.h"
2007-01-14 12:15:45 +00:00
#include "cardsvalue.h"
2007-01-13 02:40:33 +00:00
#include "localpreflop.h"
#include "localflop.h"
#include "localturn.h"
#include "localriver.h"
2007-01-13 14:27:56 +00:00
2007-01-13 02:40:33 +00:00
2007-01-13 22:29:17 +00:00
class LocalHand : public HandInterface{
2007-01-13 02:40:33 +00:00
public:
LocalHand(EngineFactory*, GuiInterface*, BoardInterface*, PlayerInterface**, int, int, int, int, int, int);
2007-01-13 02:40:33 +00:00
~LocalHand();
2007-01-13 22:29:17 +00:00
2007-01-13 02:40:33 +00:00
2007-01-14 12:15:45 +00:00
PlayerInterface** getPlayerArray() const { return playerArray; }
2007-01-13 22:29:17 +00:00
BoardInterface* getBoard() const { return myBoard; }
2007-01-14 13:23:04 +00:00
PreflopInterface* getPreflop() const { return myPreflop; }
FlopInterface* getFlop() const { return myFlop; }
TurnInterface* getTurn() const { return myTurn; }
RiverInterface* getRiver() const { return myRiver; }
2007-01-13 02:40:33 +00:00
GuiInterface* getGuiInterface() const { return myGui; }
void setMyID(const int& theValue) { myID = theValue; }
int getMyID() const { return myID; }
void setActualQuantityPlayers(const int& theValue) { actualQuantityPlayers = theValue; }
int getActualQuantityPlayers() const { return actualQuantityPlayers; }
void setStartQuantityPlayers(const int& theValue) { startQuantityPlayers = theValue; }
int getStartQuantityPlayers() const { return startQuantityPlayers; }
2007-01-13 02:40:33 +00:00
void setActualRound(const int& theValue) { actualRound = theValue; }
int getActualRound() const { return actualRound; }
2007-01-13 22:29:17 +00:00
void setDealerPosition(const int& theValue) { dealerPosition = theValue; }
int getDealerPosition() const { return dealerPosition; }
2007-01-13 02:40:33 +00:00
void setSmallBlind(const int& theValue) { smallBlind = theValue; }
int getSmallBlind() const { return smallBlind; }
void setAllInCondition(bool theValue) { allInCondition = theValue; }
bool getAllInCondition() const { return allInCondition; }
void setStartCash(const int& theValue) { startCash = theValue; }
int getStartCash() const { return startCash; }
void setActivePlayersCounter(const int& theValue) { activePlayersCounter = theValue; }
int getActivePlayersCounter() const { return activePlayersCounter; }
2007-01-13 02:40:33 +00:00
void assignButtons();
void highlightRoundLabel();
void switchRounds();
2007-01-13 02:40:33 +00:00
2007-01-13 22:29:17 +00:00
2007-01-13 02:40:33 +00:00
private:
2007-01-13 14:27:56 +00:00
2007-01-14 13:23:04 +00:00
EngineFactory *myFactory;
2007-01-13 02:40:33 +00:00
GuiInterface *myGui;
2007-01-13 22:29:17 +00:00
BoardInterface *myBoard;
PlayerInterface **playerArray;
2007-01-14 13:23:04 +00:00
PreflopInterface *myPreflop;
FlopInterface *myFlop;
TurnInterface *myTurn;
RiverInterface *myRiver;
2007-01-13 02:40:33 +00:00
int myID;
int actualQuantityPlayers;
int startQuantityPlayers;
2007-01-13 02:40:33 +00:00
int dealerPosition; // -1 -> neutral
int actualRound; //0 = preflop, 1 = flop, 2 = turn, 3 = river
int smallBlind;
int startCash;
int activePlayersCounter;
2007-01-13 02:40:33 +00:00
bool allInCondition;
};
#endif