This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#ifndef ENGINEFACTORY_H
|
||||
#define ENGINEFACTORY_H
|
||||
|
||||
|
||||
|
||||
class HandInterface;
|
||||
class BoardInterface;
|
||||
class PlayerInterface;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "localenginefactory.h"
|
||||
|
||||
#include "localhand.h"
|
||||
#include "handinterface.h"
|
||||
|
||||
|
||||
#include "localboard.h"
|
||||
#include "boardinterface.h"
|
||||
@@ -41,22 +41,22 @@ LocalEngineFactory::~LocalEngineFactory()
|
||||
|
||||
|
||||
HandInterface* LocalEngineFactory::createHand() {
|
||||
|
||||
HandInterface *hi = new LocalHand();
|
||||
return hi;
|
||||
/*
|
||||
new LocalHand;
|
||||
return hi;*/
|
||||
}
|
||||
|
||||
|
||||
BoardInterface* LocalEngineFactory::createBoard() {
|
||||
|
||||
BoardInterface *bi = new LocalBoard();
|
||||
return bi;
|
||||
// BoardInterface *bi = new LocalBoard();
|
||||
// return bi;
|
||||
}
|
||||
|
||||
|
||||
PlayerInterface* LocalEngineFactory::createPlayer() {
|
||||
|
||||
PlayerInterface *pi = new LocalPlayer();
|
||||
return pi;
|
||||
// PlayerInterface *pi = new LocalPlayer();
|
||||
// return pi;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user