summaryrefslogtreecommitdiff
path: root/src/Model/Cell.cpp
blob: ba4bbbd57fc6a809d7e054a0a4d003335591ed9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "Cell.hpp"

// Constructors

Cell::Cell()
{
	m_value = ".";
}

Cell::Cell(std::string value)
{
	m_value = value;
}

// Destructor

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()
{
	return m_value;
}