2007-08-04 01:30:59 +00:00
|
|
|
//
|
|
|
|
|
// C++ Interface: berointerface
|
|
|
|
|
//
|
2007-08-07 20:37:34 +00:00
|
|
|
// Description: Betting rounds interface
|
2007-08-04 01:30:59 +00:00
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
|
|
|
|
|
//
|
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
#ifndef BEROINTERFACE_H
|
|
|
|
|
#define BEROINTERFACE_H
|
|
|
|
|
|
2007-09-25 18:00:05 +00:00
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
#include <list>
|
|
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
#include "game_defs.h"
|
|
|
|
|
|
2007-09-25 18:00:05 +00:00
|
|
|
class PlayerInterface;
|
|
|
|
|
|
|
|
|
|
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
|
|
|
|
|
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
|
|
|
|
|
|
2007-08-04 01:30:59 +00:00
|
|
|
class BeRoInterface{
|
|
|
|
|
public:
|
|
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
virtual ~BeRoInterface();
|
2007-08-05 13:07:23 +00:00
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
virtual GameState getMyBeRoID() const =0;
|
2007-08-04 21:30:20 +00:00
|
|
|
|
|
|
|
|
virtual void setPlayersTurn(int) =0;
|
|
|
|
|
virtual int getPlayersTurn() const =0;
|
2007-09-25 18:00:05 +00:00
|
|
|
|
|
|
|
|
virtual void setCurrentPlayersTurnIt(PlayerListIterator) =0;
|
|
|
|
|
virtual PlayerListIterator getCurrentPlayersTurnIt() const =0;
|
2007-08-04 21:30:20 +00:00
|
|
|
|
|
|
|
|
virtual void setHighestSet(int) =0;
|
|
|
|
|
virtual int getHighestSet() const =0;
|
|
|
|
|
|
2007-08-05 23:57:16 +00:00
|
|
|
virtual void setHighestCardsValue(int theValue) =0;
|
2007-08-06 09:50:54 +00:00
|
|
|
virtual int getHighestCardsValue() const =0;
|
2007-08-05 23:57:16 +00:00
|
|
|
|
2007-08-11 14:36:20 +00:00
|
|
|
virtual void setLastActionPlayer( int theValue ) =0;
|
|
|
|
|
virtual int getLastActionPlayer() const =0;
|
|
|
|
|
|
2007-09-02 19:20:49 +00:00
|
|
|
virtual void setMinimumRaise (int) =0;
|
|
|
|
|
virtual int getMinimumRaise() const =0;
|
|
|
|
|
|
|
|
|
|
|
2007-08-07 20:37:34 +00:00
|
|
|
virtual void resetFirstRun() =0;
|
2007-08-06 20:35:26 +00:00
|
|
|
|
2007-08-07 13:07:39 +00:00
|
|
|
virtual void nextPlayer() =0;
|
2007-08-07 20:37:34 +00:00
|
|
|
virtual void run() =0;
|
2007-08-09 18:02:58 +00:00
|
|
|
|
2007-08-22 20:49:07 +00:00
|
|
|
virtual void postRiverRun() =0;
|
|
|
|
|
|
2007-08-04 01:30:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|