Game: make the constructor protected, to make the design clearer

This commit is contained in:
Olivier Teulière 2013-01-07 18:06:00 +01:00
parent 0554a00e11
commit fcb9fa572a

View file

@ -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
*********************************************************/