2P11/src/Model/Cell.hpp

34 lines
497 B
C++
Raw Normal View History

2015-04-29 15:40:08 +04:00
#ifndef DEF_CELL
#define DEF_CELL
2015-04-29 15:42:41 +04:00
/* Cell.h
2015-04-29 15:40:08 +04:00
* Defines the class Cell
* A cell represents a cell in the grid
* Creators : krilius, manzerbredes
* Date : 29/04/2015 */
#include <iostream>
2015-04-29 15:42:41 +04:00
#include <string>
2015-04-29 15:40:08 +04:00
class Cell
{
2015-04-29 15:42:41 +04:00
private:
std::string m_value;
public:
Cell();
Cell(std::string value);
~Cell();
2015-04-29 22:28:29 +04:00
bool isEmpty();
bool equals(Cell * otherCell);
std::string getValue();
2015-04-29 15:42:41 +04:00
// Describes the cell in a terminal
2015-04-29 20:52:18 +04:00
std::string description();
2015-04-29 15:42:41 +04:00
2015-04-29 15:40:08 +04:00
};
#endif