more polymorphie steps for BeRo

This commit is contained in:
doitux
2007-08-04 11:37:26 +00:00
parent 993465a213
commit 421ca6c62d
7 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
//
#include "clientbero.h"
ClientBeRo::ClientBeRo()
ClientBeRo::ClientBeRo() : BeRoInterface()
{
}
+4 -1
View File
@@ -12,10 +12,13 @@
#ifndef CLIENTBERO_H
#define CLIENTBERO_H
#include "berointerface.h"
/**
@author FThauer FHammer <webmaster@pokerth.net>
*/
class ClientBeRo{
class ClientBeRo : public BeRoInterface{
public:
ClientBeRo();
@@ -25,6 +25,8 @@
#include "clientflop.h"
#include "clientturn.h"
#include "clientriver.h"
#include "clientbero.h"
ClientEngineFactory::ClientEngineFactory()
@@ -72,3 +74,7 @@ RiverInterface* ClientEngineFactory::createRiver(HandInterface* hi, int id, int
return new ClientRiver(hi, id, aP, dP, sB);
}
BeRoInterface* ClientEngineFactory::createBeRo()
{
return new ClientBeRo();
}
@@ -28,6 +28,8 @@
#include <flopinterface.h>
#include <turninterface.h>
#include <riverinterface.h>
#include <berointerface.h>
class ConfigFile;
@@ -44,6 +46,8 @@ 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();
};
#endif