blob: b2fe1a49beceb34da5ef68ce71658a44af654fe6 (
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
|
#include "Cell.h"
#include <cstddef>
Cell::Cell(void): m_currentState(EMPTY_CELL) {
m_pPlayer=NULL;
}
Cell::Cell(CellState cs): m_currentState(cs) {
m_pPlayer=NULL;
}
Cell::~Cell(void){
}
void Cell::setState(CellState cs) {
m_currentState = cs;
}
CellState Cell::getState() {
return(m_currentState);
}
Player* Cell::getPlayer() {
return(m_pPlayer);
}
void Cell::setPlayer(Player* pPlayer) {
m_pPlayer = pPlayer;
}
|