Estandaritzant noms segons convencions

This commit is contained in:
2024-10-10 20:27:31 +02:00
parent 9e5f41644e
commit d6c3c89872
67 changed files with 1457 additions and 1504 deletions
+7 -7
View File
@@ -1,13 +1,13 @@
#pragma once
#include <string> // for string
#include <vector> // for vector
struct hiScoreEntry_t;
#include <string> // for string
#include <vector> // for vector
struct HiScoreEntry;
/*
Esta clase sirve para añadir elementos hiScoreEntry_r a un vector (tabla), de manera
que la tabla siempre está ordenada.
Además tiene un método para dejar la tabla con sus valores iniciales y métodos para
leer y escribir la tabla a un fichero
*/
@@ -17,14 +17,14 @@ class ManageHiScoreTable
{
private:
// Variables
std::vector<hiScoreEntry_t> *table; // Tabla con los records
std::vector<HiScoreEntry> *table; // Tabla con los records
// Ordena la tabla
void sort();
public:
// Constructor
ManageHiScoreTable(std::vector<hiScoreEntry_t> *table);
ManageHiScoreTable(std::vector<HiScoreEntry> *table);
// Destructor
~ManageHiScoreTable() = default;
@@ -33,7 +33,7 @@ public:
void clear();
// Añade un elemento a la tabla
void add(hiScoreEntry_t entry);
void add(HiScoreEntry entry);
// Carga la tabla con los datos de un fichero
bool loadFromFile(std::string filePath);