diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-04 13:08:45 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-04 13:08:45 +0200 |
| commit | 1bebaf0f924c83bfb5a91bafefcb69d98e3b8b05 (patch) | |
| tree | 7b950d1bc755aa648bb3e8777e4fc6bc684bd001 /src/Model/Game.hpp | |
| parent | 3384204edca8720958b7d20c72956037b03238ae (diff) | |
Prefer extends Game to grid than encapsulation
Diffstat (limited to 'src/Model/Game.hpp')
| -rw-r--r-- | src/Model/Game.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Model/Game.hpp b/src/Model/Game.hpp index e5d19e5..77be7d7 100644 --- a/src/Model/Game.hpp +++ b/src/Model/Game.hpp @@ -13,11 +13,11 @@ #include "Grid.hpp" #include <tuple> -class Game +class Game : public Grid { private: //Members - Grid m_grid; + //Grid m_grid; int m_score; int m_nbMove; @@ -30,13 +30,13 @@ class Game bool swipe(kbdh::Direction direction); void coutGrid(); void popRandomNumber(); - bool isOver(); + //bool isOver(); //Getters and Setters int getScore(); int getNbMove(); - int maxStrLenInGrid(); - std::vector<std::vector<int> > getGrid(); + //int maxStrLenInGrid(); + //std::vector<std::vector<int> > getGrid(); }; #endif |
