Some header file changes.

This commit is contained in:
lotodore
2011-01-03 20:23:34 +00:00
parent 969e7822f8
commit 6952ad8a70
10 changed files with 55 additions and 50 deletions
+1 -8
View File
@@ -20,15 +20,8 @@
#ifndef BEROINTERFACE_H #ifndef BEROINTERFACE_H
#define BEROINTERFACE_H #define BEROINTERFACE_H
#include <boost/shared_ptr.hpp>
#include <list>
#include <game_defs.h> #include <game_defs.h>
#include <engine_defs.h>
class PlayerInterface;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
class BeRoInterface{ class BeRoInterface{
public: public:
+1 -8
View File
@@ -20,17 +20,10 @@
#ifndef BOARDINTERFACE_H #ifndef BOARDINTERFACE_H
#define BOARDINTERFACE_H #define BOARDINTERFACE_H
#include <boost/shared_ptr.hpp> #include <engine_defs.h>
#include <vector>
#include <list>
class PlayerInterface;
class HandInterface; class HandInterface;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
class BoardInterface { class BoardInterface {
public: public:
+32
View File
@@ -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. *
***************************************************************************/
#ifndef ENGINE_DEFS_H
#define ENGINE_DEFS_H
#include <boost/shared_ptr.hpp>
#include <list>
class PlayerInterface;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
#endif
+2 -4
View File
@@ -20,10 +20,6 @@
#ifndef LOCALHAND_H #ifndef LOCALHAND_H
#define LOCALHAND_H #define LOCALHAND_H
#include <vector>
#include <boost/shared_ptr.hpp>
#include <enginefactory.h> #include <enginefactory.h>
#include <guiinterface.h> #include <guiinterface.h>
#include <boardinterface.h> #include <boardinterface.h>
@@ -31,6 +27,8 @@
#include <handinterface.h> #include <handinterface.h>
#include <berointerface.h> #include <berointerface.h>
#include <vector>
class Log; class Log;
class LocalHand : public HandInterface{ class LocalHand : public HandInterface{
+4 -4
View File
@@ -18,14 +18,14 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#include <sqlite3.h>
#include <iostream>
#include <dirent.h>
#include <boost/lexical_cast.hpp>
#include "configfile.h" #include "configfile.h"
#include "game_defs.h" #include "game_defs.h"
#include "log.h" #include "log.h"
#include "playerinterface.h" #include "playerinterface.h"
#include <sqlite3.h>
#include <iostream>
#include <dirent.h>
#include <boost/lexical_cast.hpp>
using namespace std; using namespace std;
+1 -8
View File
@@ -20,16 +20,9 @@
#ifndef LOG_H #ifndef LOG_H
#define LOG_H #define LOG_H
#include <boost/shared_ptr.hpp> #include <engine_defs.h>
#include <list>
#include <iostream>
struct sqlite3; struct sqlite3;
class PlayerInterface;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
class Log class Log
{ {
+1 -5
View File
@@ -20,7 +20,7 @@
#ifndef GAME_H #ifndef GAME_H
#define GAME_H #define GAME_H
#include <boost/shared_ptr.hpp> #include <engine_defs.h>
#include "gamedata.h" #include "gamedata.h"
#include "playerdata.h" #include "playerdata.h"
@@ -29,15 +29,11 @@
class GuiInterface; class GuiInterface;
class Log; class Log;
class HandInterface; class HandInterface;
class PlayerInterface;
class BoardInterface; class BoardInterface;
class EngineFactory; class EngineFactory;
struct GameData; struct GameData;
struct StartData; struct StartData;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
class Game { class Game {