Pasaeta de include-what-you-use

This commit is contained in:
2024-10-13 21:58:36 +02:00
parent d0a6e4c572
commit 9825c7fb9b
28 changed files with 229 additions and 239 deletions

View File

@@ -3,16 +3,19 @@
#include <SDL2/SDL_gamecontroller.h> // for SDL_GameControllerButton
#include <SDL2/SDL_rect.h> // for SDL_Rect, SDL_Point
#include <SDL2/SDL_render.h> // for SDL_Renderer
#include <SDL2/SDL_stdinc.h> // for Uint8, Uint32
#include <SDL2/SDL_stdinc.h> // for Uint8
#include <stdint.h> // for int32_t
#include <string> // for string, basic_string
#include <string> // for string
#include <vector> // for vector
#include "input.h" // for inputs_e
#include "lang.h"
struct JA_Music_t;
struct JA_Sound_t;
enum class ScreenFilter;
enum class ScreenVideoMode;
enum class InputType : int;
enum class ScreenFilter; // lines 14-14
enum class ScreenVideoMode; // lines 15-15
namespace lang
{
enum class Code : int;
}
struct JA_Music_t; // lines 12-12
struct JA_Sound_t; // lines 13-13
// Dificultad del juego
enum class GameDifficulty
@@ -35,6 +38,7 @@ struct Circle
struct Color
{
Uint8 r, g, b;
constexpr Color(int red = 255, int green = 255, int blue = 255) : r(red), g(green), b(blue) {}
};
// Posiciones de las notificaciones
@@ -47,13 +51,6 @@ enum class NotifyPosition
RIGHT,
};
// Estructura para saber la seccion y subseccion del programa
/*struct Section
{
section::Name name;
section::Options options;
};*/
// Estructura para las entradas de la tabla de recirds
struct HiScoreEntry
{
@@ -114,7 +111,7 @@ struct OptionsAudio
struct OptionsGame
{
GameDifficulty difficulty; // Dificultad del juego
lang::Code language; // Idioma usado en el juego
lang::Code language; // Idioma usado en el juego
bool autofire; // Indica si el jugador ha de pulsar repetidamente para disparar o basta con mantener pulsado
std::vector<HiScoreEntry> hi_score_table; // Tabla con las mejores puntuaciones
};