This commit is contained in:
doitux
2007-01-13 19:30:12 +00:00
parent 5085ace50d
commit 15b46f6fb5
3 changed files with 42 additions and 3 deletions
@@ -19,6 +19,16 @@
***************************************************************************/
#include "localenginefactory.h"
#include "localhand.h"
#include "handinterface.h"
#include "localboard.h"
#include "boardinterface.h"
#include "localplayer.h"
#include "playerinterface.h"
LocalEngineFactory::LocalEngineFactory()
: EngineFactory()
{
@@ -30,3 +40,23 @@ LocalEngineFactory::~LocalEngineFactory()
}
HandInterface* LocalEngineFactory::createHand() {
HandInterface *hi = new LocalHand();
return hi;
}
BoardInterface* LocalEngineFactory::createBoard() {
BoardInterface *bi = new LocalBoard();
return bi;
}
PlayerInterface* LocalEngineFactory::createPlayer() {
PlayerInterface *pi = new LocalPlayer();
return pi;
}