renomena tipus _t/_e a CamelCase (Circle, Color, Section, ...)
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
class Sprite;
|
||||
class Text;
|
||||
class Texture;
|
||||
struct section_t;
|
||||
struct Section;
|
||||
|
||||
enum mode_e : std::uint8_t {
|
||||
enum InstructionsMode : std::uint8_t {
|
||||
m_manual,
|
||||
m_auto
|
||||
};
|
||||
@@ -24,7 +24,7 @@ class Instructions {
|
||||
SDL_Texture *backbuffer; // Textura para usar como backbuffer
|
||||
Sprite *sprite; // Sprite con la textura de las instrucciones
|
||||
Text *text; // Objeto para escribir texto
|
||||
section_t *section; // Estado del bucle principal para saber si continua o se sale
|
||||
Section *section; // Estado del bucle principal para saber si continua o se sale
|
||||
|
||||
// Variables
|
||||
Uint16 counter; // Contador
|
||||
@@ -32,7 +32,7 @@ class Instructions {
|
||||
Uint32 ticks; // Contador de ticks para ajustar la velocidad del programa
|
||||
Uint32 ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
||||
bool manualQuit; // Indica si se quiere salir del modo manual
|
||||
mode_e mode{m_auto}; // Modo en el que se van a ejecutar las instrucciones
|
||||
InstructionsMode mode{m_auto}; // Modo en el que se van a ejecutar las instrucciones
|
||||
bool finished; // Indica si las instrucciones han terminado
|
||||
bool quitRequested; // Indica si se ha solicitado salir de la aplicación
|
||||
|
||||
@@ -41,7 +41,7 @@ class Instructions {
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Instructions(SDL_Renderer *renderer, section_t *section);
|
||||
Instructions(SDL_Renderer *renderer, Section *section);
|
||||
|
||||
// Destructor
|
||||
~Instructions();
|
||||
@@ -50,10 +50,10 @@ class Instructions {
|
||||
auto operator=(const Instructions &) -> Instructions & = delete;
|
||||
|
||||
// Bucle principal
|
||||
void run(mode_e mode);
|
||||
void run(InstructionsMode mode);
|
||||
|
||||
// Inicia las instrucciones (sin bucle)
|
||||
void start(mode_e mode);
|
||||
void start(InstructionsMode mode);
|
||||
|
||||
// Actualiza las variables
|
||||
void update();
|
||||
|
||||
Reference in New Issue
Block a user