Retocando las constantes

This commit is contained in:
2022-08-30 14:01:44 +02:00
parent add7e5201a
commit c5728d0849
11 changed files with 124 additions and 533 deletions

View File

@@ -10,14 +10,11 @@
#include "input.h"
#include "game.h"
#include "asset.h"
#include "const.h"
#ifndef DIRECTOR_H
#define DIRECTOR_H
#define WINDOW_CAPTION "JailDoctor's Dilemma"
#define GAME_WIDTH 256
#define GAME_HEIGHT 192
// Director
class Director
{
@@ -34,23 +31,17 @@ private:
std::string executablePath; // Path del ejecutable
section_t section; // Sección y subsección actual del programa;
// Inicia las variables necesarias para arrancar el programa
void init(Uint8 name);
// Inicializa jail_audio
void initJailAudio();
// Arranca SDL y crea la ventana
bool initSDL();
// Inicializa el objeto Input
void initInput();
// Crea el indice de ficheros
void setFileList();
// Comprueba que todos los ficheros existen
bool checkFileList();
// Establece el valor de la variable
void setExecutablePath(std::string path);
bool setFileList();
// Obtiene el valor de la variable
Uint8 getSubsection();
@@ -73,9 +64,6 @@ private:
// Ejecuta la seccion de juego donde se juega
void runGame();
// Comprueba los ficheros del vector de ficheros que coinciden con una ruta dada
bool checkFolder(std::string name, std::string path);
public:
// Constructor
Director(std::string path);