diff options
Diffstat (limited to 'src/Model/Grid.hpp')
| -rw-r--r-- | src/Model/Grid.hpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/Model/Grid.hpp b/src/Model/Grid.hpp index b7c1f9f..810cb9b 100644 --- a/src/Model/Grid.hpp +++ b/src/Model/Grid.hpp @@ -17,21 +17,23 @@ class Grid { private: - int m_size; + int m_size; std::vector<std::vector<Cell<StringElement>*> > m_table; - + public: Grid(int size); ~Grid(); void show(); - - bool isEmpty(int i, int j); - bool gridIsFull(); - int getNRows(); - int getNCols(); - void setCell(int i, int j, Cell<StringElement> *cell); - Cell<StringElement>* getCell(short i, short j); - + + bool isEmpty(int i, int j); + bool gridIsFull(); + int getNRows(); + int getNCols(); + std::vector<Cell<StringElement>* > swipeLine(std::vector<Cell<StringElement>* > line); + void swipeRight(); + void setCell(int i, int j, Cell<StringElement> *cell); + Cell<StringElement>* getCell(short i, short j); + }; |
