diff options
| author | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 22:28:29 +0400 |
|---|---|---|
| committer | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 22:28:29 +0400 |
| commit | a3b805ee7b96d1d693c4108f0104650cfd60b565 (patch) | |
| tree | 0fe6451222c135e0cadcc3011829a4f8ef02dc6d /src/Model/Grid.hpp | |
| parent | e241abc9df586cce683d6ae89e1d02c13084a10f (diff) | |
first step of the model
Diffstat (limited to 'src/Model/Grid.hpp')
| -rw-r--r-- | src/Model/Grid.hpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Model/Grid.hpp b/src/Model/Grid.hpp index e3bc888..2a28559 100644 --- a/src/Model/Grid.hpp +++ b/src/Model/Grid.hpp @@ -10,17 +10,30 @@ #include <iostream> #include <vector> +#include "ModelConstants.hpp" #include "Cell.hpp" class Grid { private: - std::vector<std::vector<Cell*> > m_table; + int m_size; + std::vector<std::vector<Cell*> > m_table; + + void moveUp(); + void moveDown(); + void moveLeft(); + void moveRight(); public: Grid(int size); ~Grid(); - void afficher(); + void show(); + + bool isEmpty(int i, int j); + bool gridIsFull(); + void setCell(int i, int j, Cell * cell); + + void move(Direction direction); }; |
