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: clientberofactory
//
// Description:
//
//
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "clientberofactory.h"
ClientBeRoFactory::ClientBeRoFactory()
: BeRoFactoryInterface()
{
}
ClientBeRoFactory::~ClientBeRoFactory()
{
}
@@ -0,0 +1,29 @@
//
// C++ Interface: clientberofactory
//
// Description:
//
//
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CLIENTBEROFACTORY_H
#define CLIENTBEROFACTORY_H
#include <berofactoryinterface.h>
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class ClientBeRoFactory : public BeRoFactoryInterface
{
public:
ClientBeRoFactory();
~ClientBeRoFactory();
};
#endif
@@ -26,6 +26,7 @@
#include "clientturn.h"
#include "clientriver.h"
#include "clientbero.h"
#include "clientberofactory.h"
@@ -78,3 +79,8 @@ BeRoInterface* ClientEngineFactory::createBeRo()
{
return new ClientBeRo();
}
BeRoFactoryInterface* ClientEngineFactory::createBeRoFactory()
{
return new ClientBeRoFactory();
}
@@ -29,6 +29,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();
};