more polymorphie steps for BeRo

This commit is contained in:
doitux
2007-08-04 12:08:10 +00:00
parent 421ca6c62d
commit 1f00b3f458
12 changed files with 179 additions and 2 deletions
@@ -0,0 +1,24 @@
//
// C++ Implementation: localberofactory
//
// Description:
//
//
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "localberofactory.h"
LocalBeRoFactory::LocalBeRoFactory()
: BeRoFactoryInterface()
{
}
LocalBeRoFactory::~LocalBeRoFactory()
{
}
@@ -0,0 +1,29 @@
//
// C++ Interface: localberofactory
//
// Description:
//
//
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef LOCALBEROFACTORY_H
#define LOCALBEROFACTORY_H
#include <berofactoryinterface.h>
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class LocalBeRoFactory : public BeRoFactoryInterface
{
public:
LocalBeRoFactory();
~LocalBeRoFactory();
};
#endif
@@ -27,6 +27,7 @@
#include "localturn.h"
#include "localriver.h"
#include "localbero.h"
#include "localberofactory.h"
#include <configfile.h>
@@ -56,4 +57,7 @@ TurnInterface* LocalEngineFactory::createTurn(HandInterface* hi, int id, int aP,
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(); }
BeRoInterface* LocalEngineFactory::createBeRo() { return new LocalBeRo(); }
BeRoFactoryInterface* LocalEngineFactory::createBeRoFactory() { return new LocalBeRoFactory(); }
@@ -30,6 +30,7 @@
#include <turninterface.h>
#include <riverinterface.h>
#include <berointerface.h>
#include <berofactoryinterface.h>
class ConfigFile;
@@ -47,6 +48,7 @@ public:
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();
BeRoFactoryInterface* createBeRoFactory();
private:
ConfigFile *myConfig;