create log in session; put some include from header to cpp

This commit is contained in:
floty
2010-12-20 20:30:12 +00:00
parent c88fe3220d
commit 29e16e3489
6 changed files with 27 additions and 22 deletions
+5 -2
View File
@@ -23,10 +23,12 @@
#include <boost/shared_ptr.hpp>
#include "gamedata.h"
#include "playerdata.h"
#include "log.h"
#include <third_party/boost/timers.hpp>
class GuiInterface;
class Log;
class HandInterface;
class PlayerInterface;
class BoardInterface;
@@ -41,9 +43,9 @@ typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerLis
class Game {
public:
Game(GuiInterface *gui, boost::shared_ptr<EngineFactory> factory,
Game(GuiInterface *gui, boost::shared_ptr<EngineFactory> factory,
const PlayerDataList &playerDataList, const GameData &gameData,
const StartData &startData, int gameId);
const StartData &startData, int gameId, Log *myLog = 0);
~Game();
@@ -85,6 +87,7 @@ private:
boost::shared_ptr<EngineFactory> myFactory;
GuiInterface *myGui;
Log *myLog;
HandInterface *currentHand;
BoardInterface *currentBoard;