This commit is contained in:
doitux
2007-01-13 18:55:48 +00:00
parent 70ede8cc90
commit 1e8152e97c
46 changed files with 0 additions and 0 deletions
+105
View File
@@ -0,0 +1,105 @@
/***************************************************************************
* 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. *
***************************************************************************/
#ifndef LOCALHAND_H
#define LOCALHAND_H
#include "guiinterface.h"
#include "localboard.h"
#include "localplayer.h"
#include "tools.h"
#include "localpreflop.h"
#include "localflop.h"
#include "localturn.h"
#include "localriver.h"
class GuiInterface;
class LocalBoard;
class LocalPlayer;
class LocalPreflop;
class LocalFlop;
class LocalTurn;
class LocalRiver;
class LocalHand {
public:
LocalHand(GuiInterface*, LocalBoard*, LocalPlayer**, int, int, int, int, int);
~LocalHand();
LocalPlayer** getPlayerArray() const { return playerArray; }
LocalBoard* getBoard() const { return myBoard; }
LocalPreflop* getPreflop() const { return myPreflop; }
LocalFlop* getFlop() const { return myFlop; }
LocalTurn* getTurn() const { return myTurn; }
LocalRiver* getRiver() const { return myRiver; }
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 setActualRound(const int& theValue) { actualRound = theValue; }
int getActualRound() const { return actualRound; }
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 assignButtons();
void highlightRoundLabel();
void switchRounds();
private:
GuiInterface *myGui;
LocalBoard *myBoard;
LocalPlayer **playerArray;
LocalPreflop *myPreflop;
LocalFlop *myFlop;
LocalTurn *myTurn;
LocalRiver *myRiver;
int myID;
int actualQuantityPlayers;
int dealerPosition; // -1 -> neutral
int actualRound; //0 = preflop, 1 = flop, 2 = turn, 3 = river
int smallBlind;
int startCash;
bool allInCondition;
};
#endif