From fcb9fa572ab3abc48bd6f9720b908c7cd0639f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Mon, 7 Jan 2013 18:06:00 +0100 Subject: [PATCH] Game: make the constructor protected, to make the design clearer --- game/game.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/game/game.h b/game/game.h index 26daf0d..4fa7765 100644 --- a/game/game.h +++ b/game/game.h @@ -51,11 +51,6 @@ class Game { DEFINE_LOGGER(); public: - /** - * The iMasterGame parameter is optional. - * This game takes ownership of the master game, if one is provided. - */ - Game(const GameParams &iParams, const Game *iMasterGame); virtual ~Game(); /*************** @@ -241,6 +236,13 @@ protected: /// Bag Bag m_bag; + /** + * Protected constructor. + * The iMasterGame parameter is optional (i.e. it can be NULL). + * This game takes ownership of the master game, if one is provided. + */ + Game(const GameParams &iParams, const Game *iMasterGame); + /********************************************************* * Helper functions *********************************************************/