Estandaritzant noms segons convencions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user