more polymorphie steps for BeRo
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
//
|
||||
#include "clientbero.h"
|
||||
|
||||
ClientBeRo::ClientBeRo()
|
||||
ClientBeRo::ClientBeRo() : BeRoInterface()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user