summaryrefslogtreecommitdiff
path: root/src/Model/Grid.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 18:15:14 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 18:15:14 +0200
commit27d646af15bc9147a141aced8cebd30668de9a8e (patch)
tree81fab7651570910f9232e90b50ba43c061585858 /src/Model/Grid.hpp
parent6b8a144bd192de206e11a171841ec6161d11b6aa (diff)
Restart project
Diffstat (limited to 'src/Model/Grid.hpp')
-rw-r--r--src/Model/Grid.hpp22
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);
+
};