pasaeta loca de clang-format (despres m'arrepentiré pero bueno)

This commit is contained in:
2025-07-18 20:01:13 +02:00
parent 734c220fb0
commit dabba41179
112 changed files with 22361 additions and 26474 deletions
+9 -11
View File
@@ -1,7 +1,7 @@
#pragma once
#include <string> // Para std::string
#include <vector> // Para std::vector
#include <string> // Para std::string
#include <vector> // Para std::vector
/*
Esta clase sirve para añadir elementos HiScoreEntry a un vector (tabla), de manera
@@ -12,11 +12,10 @@
*/
// --- Estructura para las entradas de la tabla de records ---
struct HiScoreEntry
{
std::string name; // Nombre
int score; // Puntuación
bool one_credit_complete; // Indica si se ha conseguido 1CC
struct HiScoreEntry {
std::string name; // Nombre
int score; // Puntuación
bool one_credit_complete; // Indica si se ha conseguido 1CC
// Constructor
explicit HiScoreEntry(const std::string &n = "", int s = 0, bool occ = false)
@@ -24,9 +23,8 @@ struct HiScoreEntry
};
// --- Clase ManageHiScoreTable ---
class ManageHiScoreTable
{
public:
class ManageHiScoreTable {
public:
// Constructor
explicit ManageHiScoreTable(std::vector<HiScoreEntry> &table)
: table_(table) {}
@@ -46,7 +44,7 @@ public:
// Guarda la tabla en un fichero
bool saveToFile(const std::string &file_path);
private:
private:
// Referencia a la tabla con los records
std::vector<HiScoreEntry> &table_;