summaryrefslogtreecommitdiff
path: root/src/Model/Cell.cpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 08:43:05 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 08:43:05 +0200
commit8e94318a960259c3ef2dad472705e6de0b3229df (patch)
treec5964bf1087f310c0d62a9df747502b675b64772 /src/Model/Cell.cpp
parentad216d86f6573e3575e85f3a2941f6f34b5b1c0e (diff)
parenta3b805ee7b96d1d693c4108f0104650cfd60b565 (diff)
Merge branch 'MakeClass' of github.com:manzerbredes/2P11 into MakeClass
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()