From a3b805ee7b96d1d693c4108f0104650cfd60b565 Mon Sep 17 00:00:00 2001 From: krilius Date: Wed, 29 Apr 2015 22:28:29 +0400 Subject: first step of the model --- src/Model/Grid.hpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/Model/Grid.hpp') 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 #include +#include "ModelConstants.hpp" #include "Cell.hpp" class Grid { private: - std::vector > m_table; + int m_size; + std::vector > 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); }; -- cgit v1.2.3