Organize all the code
This commit is contained in:
parent
af7f2fc870
commit
4cc6c6596b
7 changed files with 57 additions and 33 deletions
|
@ -16,18 +16,23 @@
|
|||
class Game
|
||||
{
|
||||
private:
|
||||
//Members
|
||||
Grid m_grid;
|
||||
int m_score;
|
||||
int m_nbMove;
|
||||
|
||||
public:
|
||||
//Constructor and Destructor
|
||||
Game();
|
||||
~Game();
|
||||
|
||||
//Helpers
|
||||
bool swipe(kbdh::Direction direction);
|
||||
void coutGrid();
|
||||
void popRandomNumber();
|
||||
bool isOver();
|
||||
|
||||
//Getters and Setters
|
||||
int getScore();
|
||||
int getNbMove();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue