summaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/CMakeLists.txt8
-rw-r--r--src/Model/Cell.cpp4
-rw-r--r--src/Model/Cell.hpp2
-rw-r--r--src/Model/Grid.cpp5
-rw-r--r--src/Model/Grid.hpp4
5 files changed, 16 insertions, 7 deletions
diff --git a/src/Model/CMakeLists.txt b/src/Model/CMakeLists.txt
new file mode 100644
index 0000000..c9cfb6e
--- /dev/null
+++ b/src/Model/CMakeLists.txt
@@ -0,0 +1,8 @@
+#Retrieve crypto++ libraries
+get_property(SFML_LIBRARIES GLOBAL PROPERTY SFML_LIBRARIES)
+
+#Make CryptClass lib
+add_library(Model ./Cell.cpp ./Game.cpp ./Grid.cpp)
+
+#Add crypto++ to CryptClass
+target_link_libraries(Model ${SFML_LIBRARIES})
diff --git a/src/Model/Cell.cpp b/src/Model/Cell.cpp
index 24fc53c..a0729f7 100644
--- a/src/Model/Cell.cpp
+++ b/src/Model/Cell.cpp
@@ -19,9 +19,9 @@ Cell::~Cell()
}
// Description
-
+/*
void Cell::description()
{
return m_value;
}
-
+*/
diff --git a/src/Model/Cell.hpp b/src/Model/Cell.hpp
index 7775bf5..dd946ab 100644
--- a/src/Model/Cell.hpp
+++ b/src/Model/Cell.hpp
@@ -21,7 +21,7 @@ class Cell
~Cell();
// Describes the cell in a terminal
- std::string description();
+ //std::string description();
};
diff --git a/src/Model/Grid.cpp b/src/Model/Grid.cpp
index 94ef5d7..d7d3f15 100644
--- a/src/Model/Grid.cpp
+++ b/src/Model/Grid.cpp
@@ -1,5 +1,6 @@
-#include "Grid.h"
+#include "Grid.hpp"
+/*
Grid::Grid(int size)
{
m_table = std::vector<std::vector<Cell*>>(size);
@@ -34,4 +35,4 @@ void Grid::description()
std::cout << std::endl;
}
}
-
+*/
diff --git a/src/Model/Grid.hpp b/src/Model/Grid.hpp
index a9c6c86..304e436 100644
--- a/src/Model/Grid.hpp
+++ b/src/Model/Grid.hpp
@@ -11,7 +11,7 @@
#include <vector>
#include "Cell.hpp"
-
+/*
class Grid
{
private:
@@ -22,6 +22,6 @@ class Grid
~Grid();
void description();
};
+*/
#endif
-