forked from jaildesigner-jailgames/jaildoctors_dilemma
Empezado a escribir datos de estadisticas en el servidor
This commit is contained in:
@@ -17,9 +17,12 @@ struct stats_t
|
||||
class Stats
|
||||
{
|
||||
private:
|
||||
// Punteros y objetos
|
||||
options_t *options;
|
||||
|
||||
// Variables
|
||||
std::vector<stats_t> list; // Lista con las estadisticas por habitación
|
||||
std::string filePath; // Fichero con las estadísticas
|
||||
std::string filePath; // Fichero con las estadísticas
|
||||
|
||||
// Busca una entrada en la lista por nombre
|
||||
int findByName(std::string name);
|
||||
@@ -27,12 +30,18 @@ private:
|
||||
// Carga las estadisticas desde un fichero
|
||||
bool loadFromFile();
|
||||
|
||||
// Carga las estadisticas desde un servidor
|
||||
bool loadFromServer();
|
||||
|
||||
// Guarda las estadisticas en un fichero
|
||||
void saveToFile();
|
||||
|
||||
// Guarda las estadisticas en un servidor
|
||||
void saveToServer();
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Stats(std::string file);
|
||||
Stats(std::string file, options_t *options);
|
||||
|
||||
// Destructor
|
||||
~Stats();
|
||||
|
||||
Reference in New Issue
Block a user