mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +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();
|
||||
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
|
||||
*********************************************************/
|
||||
|
|
Loading…
Reference in a new issue