summaryrefslogtreecommitdiff
path: root/src/Model/Cell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Cell.cpp')
-rw-r--r--src/Model/Cell.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Model/Cell.cpp b/src/Model/Cell.cpp
index 22eaafe..ba4bbbd 100644
--- a/src/Model/Cell.cpp
+++ b/src/Model/Cell.cpp
@@ -4,7 +4,7 @@
Cell::Cell()
{
- m_value = " ";
+ m_value = ".";
}
Cell::Cell(std::string value)
@@ -18,6 +18,23 @@ Cell::~Cell()
{
}
+// Getters and setters
+
+bool Cell::isEmpty()
+{
+ return (m_value == ".");
+}
+
+std::string Cell::getValue()
+{
+ return m_value;
+}
+
+bool Cell::equals(Cell *otherCell)
+{
+ return (m_value == otherCell->getValue());
+}
+
// Description
std::string Cell::description()