diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-04-30 08:43:05 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-04-30 08:43:05 +0200 |
| commit | 8e94318a960259c3ef2dad472705e6de0b3229df (patch) | |
| tree | c5964bf1087f310c0d62a9df747502b675b64772 /src/Model/Grid.hpp | |
| parent | ad216d86f6573e3575e85f3a2941f6f34b5b1c0e (diff) | |
| parent | a3b805ee7b96d1d693c4108f0104650cfd60b565 (diff) | |
Merge branch 'MakeClass' of github.com:manzerbredes/2P11 into MakeClass
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); }; |
