34 lines
479 B
C++
34 lines
479 B
C++
#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;
|
|
}
|