From c648b2a024ae7f910f3909adc2e1856680c6f844 Mon Sep 17 00:00:00 2001 From: doitux Date: Sat, 13 Jan 2007 19:10:35 +0000 Subject: [PATCH] --- enginefactory.cpp | 31 +++++++++++++++++++++++++++++++ enginefactory.h | 34 ++++++++++++++++++++++++++++++++++ localenginefactory.cpp | 32 ++++++++++++++++++++++++++++++++ localenginefactory.h | 37 +++++++++++++++++++++++++++++++++++++ pokerth.pro | 28 +++++++++++++++------------- 5 files changed, 149 insertions(+), 13 deletions(-) create mode 100644 enginefactory.cpp create mode 100644 enginefactory.h create mode 100644 localenginefactory.cpp create mode 100644 localenginefactory.h diff --git a/enginefactory.cpp b/enginefactory.cpp new file mode 100644 index 00000000..8f5bac83 --- /dev/null +++ b/enginefactory.cpp @@ -0,0 +1,31 @@ +/*************************************************************************** + * Copyright (C) 2006 by FThauer FHammer * + * f.thauer@web.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include "enginefactory.h" + +EngineFactory::EngineFactory() +{ +} + + +EngineFactory::~EngineFactory() +{ +} + + diff --git a/enginefactory.h b/enginefactory.h new file mode 100644 index 00000000..0323ad76 --- /dev/null +++ b/enginefactory.h @@ -0,0 +1,34 @@ +/*************************************************************************** + * Copyright (C) 2006 by FThauer FHammer * + * f.thauer@web.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef ENGINEFACTORY_H +#define ENGINEFACTORY_H + +/** + @author FThauer FHammer +*/ +class EngineFactory{ +public: + EngineFactory(); + + ~EngineFactory(); + +}; + +#endif diff --git a/localenginefactory.cpp b/localenginefactory.cpp new file mode 100644 index 00000000..afd21535 --- /dev/null +++ b/localenginefactory.cpp @@ -0,0 +1,32 @@ +/*************************************************************************** + * Copyright (C) 2006 by FThauer FHammer * + * f.thauer@web.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include "localenginefactory.h" + +LocalEngineFactory::LocalEngineFactory() + : EngineFactory() +{ +} + + +LocalEngineFactory::~LocalEngineFactory() +{ +} + + diff --git a/localenginefactory.h b/localenginefactory.h new file mode 100644 index 00000000..4e8a8c5a --- /dev/null +++ b/localenginefactory.h @@ -0,0 +1,37 @@ +/*************************************************************************** + * Copyright (C) 2006 by FThauer FHammer * + * f.thauer@web.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef LOCALENGINEFACTORY_H +#define LOCALENGINEFACTORY_H + +#include + +/** + @author FThauer FHammer +*/ +class LocalEngineFactory : public EngineFactory +{ +public: + LocalEngineFactory(); + + ~LocalEngineFactory(); + +}; + +#endif diff --git a/pokerth.pro b/pokerth.pro index d916249b..767bd3ef 100755 --- a/pokerth.pro +++ b/pokerth.pro @@ -15,9 +15,9 @@ HEADERS += mainwindowimpl.h \ log.h \ guiinterface.h \ guiwrapper.h \ - session.h \ + session.h \ game.h \ - localhand.h \ + localhand.h \ localboard.h \ localplayer.h \ cardsvalue.h \ @@ -26,24 +26,25 @@ HEADERS += mainwindowimpl.h \ localturn.h \ localriver.h \ tools.h \ - handinterface.h \ + handinterface.h \ playerinterface.h \ boardinterface.h \ preflopinterface.h \ flopinterface.h \ turninterface.h \ - riverinterface.h - + riverinterface.h \ + enginefactory.h \ + localenginefactory.h SOURCES += pokerth.cpp \ - mainwindowimpl.cpp \ + mainwindowimpl.cpp \ newgamedialogimpl.cpp \ aboutpokerthimpl.cpp \ log.cpp \ guiinterface.cpp \ guiwrapper.cpp \ - session.cpp \ + session.cpp \ game.cpp \ - localhand.cpp \ + localhand.cpp \ localboard.cpp \ localplayer.cpp \ cardsvalue.cpp \ @@ -52,18 +53,19 @@ SOURCES += pokerth.cpp \ localturn.cpp \ localriver.cpp \ tools.cpp \ - handinterface.cpp \ + handinterface.cpp \ playerinterface.cpp \ boardinterface.cpp \ preflopinterface.cpp \ flopinterface.cpp \ turninterface.cpp \ - riverinterface.cpp - + riverinterface.cpp \ + enginefactory.cpp \ + localenginefactory.cpp RESOURCES = deck.qrc TEMPLATE = app -DEPENDPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine -INCLUDEPATH += . src uics src/gui src/gui/qt src/engine src/engine/local_engine src/engine/network_engine +DEPENDPATH += src uics src/gui src/engine_interfaces src/local_engine src/network_engine +INCLUDEPATH += . src uics src/gui src/engine_interfaces src/local_engine src/network_engine CONFIG += qt release UI_DIR = uics TARGET = bin/pokerth