diff options
| author | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 22:28:29 +0400 |
|---|---|---|
| committer | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 22:28:29 +0400 |
| commit | a3b805ee7b96d1d693c4108f0104650cfd60b565 (patch) | |
| tree | 0fe6451222c135e0cadcc3011829a4f8ef02dc6d /src/Model/Cell.cpp | |
| parent | e241abc9df586cce683d6ae89e1d02c13084a10f (diff) | |
first step of the model
Diffstat (limited to 'src/Model/Cell.cpp')
| -rw-r--r-- | src/Model/Cell.cpp | 19 |
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() |
