first polymorphie steps for BeRo (BettingRounds)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// C++ Implementation: localbero
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
//
|
||||
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
|
||||
//
|
||||
// Copyright: See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
#include "localbero.h"
|
||||
|
||||
LocalBeRo::LocalBeRo() : BeRoInterface()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LocalBeRo::~LocalBeRo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// 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
|
||||
|
||||
#include "berointerface.h"
|
||||
|
||||
/**
|
||||
@author FThauer FHammer <webmaster@pokerth.net>
|
||||
*/
|
||||
class LocalBeRo : public BeRoInterface{
|
||||
public:
|
||||
LocalBeRo();
|
||||
|
||||
~LocalBeRo();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "localflop.h"
|
||||
#include "localturn.h"
|
||||
#include "localriver.h"
|
||||
#include "localbero.h"
|
||||
|
||||
#include <configfile.h>
|
||||
|
||||
@@ -54,3 +55,5 @@ FlopInterface* LocalEngineFactory::createFlop(HandInterface* hi, int id, int aP,
|
||||
TurnInterface* LocalEngineFactory::createTurn(HandInterface* hi, int id, int aP, int dP, int sB) { return new LocalTurn(hi, id, aP, dP, sB); }
|
||||
|
||||
RiverInterface* LocalEngineFactory::createRiver(HandInterface* hi, int id, int aP, int dP, int sB) { return new LocalRiver(hi, id, aP, dP, sB); }
|
||||
|
||||
BeRoInterface* LocalEngineFactory::createBeRo() { return new LocalBeRo(); }
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <flopinterface.h>
|
||||
#include <turninterface.h>
|
||||
#include <riverinterface.h>
|
||||
#include <berointerface.h>
|
||||
|
||||
class ConfigFile;
|
||||
|
||||
@@ -45,6 +46,7 @@ public:
|
||||
FlopInterface* createFlop(HandInterface* hi, int id, int aP, int dP, int sB);
|
||||
TurnInterface* createTurn(HandInterface* hi, int id, int aP, int dP, int sB);
|
||||
RiverInterface* createRiver(HandInterface* hi, int id, int aP, int dP, int sB);
|
||||
BeRoInterface* createBeRo();
|
||||
|
||||
private:
|
||||
ConfigFile *myConfig;
|
||||
|
||||
Reference in New Issue
Block a user