blob: 7a473cc63c59f0158fc4576e4b5b014aaf1fffba (
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
|
#include "Stats.hpp"
//==================== Constructor and destructor ====================
//Constructor
Stats::Stats() :
m_score(0),
m_nbMove(0)
{
}
//Destructor
Stats::~Stats(){
}
//==================== Helpers ====================
void Stats::incScore(int value){
m_score+=value;
}
void Stats::incnbMove(){
m_nbMove++;
}
//==================== Getters ====================
int Stats::getScore(){
return m_score;
}
int Stats::getNbMove(){
return m_nbMove;
}
|