diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-01 15:50:10 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-01 15:50:10 +0200 |
| commit | 683d7946798634c35df165bf40a97d78f947751c (patch) | |
| tree | 6dd80b60ed63ec92d7b6e7f291079493f64f219b /src/Model/Grid.hpp | |
| parent | 048f1e17b752d2af53db82c1861002283fc300fa (diff) | |
Add template support to Cell class
Diffstat (limited to 'src/Model/Grid.hpp')
| -rw-r--r-- | src/Model/Grid.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Model/Grid.hpp b/src/Model/Grid.hpp index c431cb3..a291cc8 100644 --- a/src/Model/Grid.hpp +++ b/src/Model/Grid.hpp @@ -12,12 +12,13 @@ //#include "ModelConstants.hpp" #include "Cell.hpp" +#include "./Elements/StringElement.hpp" class Grid { private: int m_size; - std::vector<std::vector<Cell*> > m_table; + std::vector<std::vector<Cell<StringElement>*> > m_table; public: Grid(int size); @@ -26,7 +27,7 @@ class Grid bool isEmpty(int i, int j); bool gridIsFull(); - void setCell(int i, int j, Cell * cell); + void setCell(int i, int j, Cell<StringElement> * cell); }; |
