mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
Game: make the constructor protected, to make the design clearer
This commit is contained in:
parent
0554a00e11
commit
fcb9fa572a
1 changed files with 7 additions and 5 deletions
12
game/game.h
12
game/game.h
|
@ -51,11 +51,6 @@ class Game
|
||||||
{
|
{
|
||||||
DEFINE_LOGGER();
|
DEFINE_LOGGER();
|
||||||
public:
|
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();
|
virtual ~Game();
|
||||||
|
|
||||||
/***************
|
/***************
|
||||||
|
@ -241,6 +236,13 @@ protected:
|
||||||
/// Bag
|
/// Bag
|
||||||
Bag m_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
|
* Helper functions
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
Loading…
Reference in a new issue