La sección del programa se controla ahora mediante un puntero a una variable
This commit is contained in:
@@ -52,6 +52,7 @@ private:
|
||||
HiScoreTable *hiScoreTable; // Objeto para mostrar las mejores puntuaciones online
|
||||
Game *demoGame; // Objeto para lanzar la demo del juego
|
||||
SDL_Event *eventHandler; // Manejador de eventos
|
||||
section_t *section; // Indicador para el bucle del titulo
|
||||
|
||||
Texture *dustTexture; // Textura con los graficos del polvo
|
||||
Texture *coffeeTexture; // Textura con los graficos de la palabra coffee
|
||||
@@ -83,7 +84,6 @@ private:
|
||||
float sin[360]; // Vector con los valores del seno precalculados
|
||||
bool menuVisible; // Indicador para saber si se muestra el menu del titulo o la frase intermitente
|
||||
bool demo; // Indica si el modo demo estará activo
|
||||
section_t section; // Indicador para el bucle del titulo
|
||||
section_t nextSection; // Indica cual es la siguiente sección a cargar cuando termine el contador del titulo
|
||||
Uint32 ticksSpeed; // Velocidad a la que se repiten los bucles del programa
|
||||
Uint8 postFade; // Opción a realizar cuando termina el fundido
|
||||
@@ -121,13 +121,13 @@ private:
|
||||
void applyOptions();
|
||||
|
||||
// Ejecuta la parte donde se muestran las instrucciones
|
||||
section_t runInstructions(mode_e mode);
|
||||
void runInstructions(mode_e mode);
|
||||
|
||||
// Ejecuta la parte donde se muestra la tabla de puntuaciones
|
||||
section_t runHiScoreTable(mode_hiScoreTable_e mode);
|
||||
void runHiScoreTable(mode_hiScoreTable_e mode);
|
||||
|
||||
// Ejecuta el juego en modo demo
|
||||
section_t runDemoGame();
|
||||
void runDemoGame();
|
||||
|
||||
// Modifica las opciones para los controles de los jugadores
|
||||
bool updatePlayerInputs(int numPlayer);
|
||||
@@ -146,13 +146,13 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Title(SDL_Renderer *renderer, Screen *screen, Input *input, Asset *asset, options_t *options, Lang *lang, section_t section);
|
||||
Title(SDL_Renderer *renderer, Screen *screen, Input *input, Asset *asset, options_t *options, Lang *lang, section_t *section);
|
||||
|
||||
// Destructor
|
||||
~Title();
|
||||
|
||||
// Bucle para el titulo del juego
|
||||
section_t run();
|
||||
void run();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user