Añadiendo la clase asset

This commit is contained in:
2022-09-26 10:17:54 +02:00
parent 25616e1e6c
commit 9e089e9092
18 changed files with 1190 additions and 622 deletions

View File

@@ -1,12 +1,13 @@
#pragma once
#include <SDL2/SDL.h>
#include "asset.h"
#include "const.h"
#include "utils.h"
#include "jail_audio.h"
#include "screen.h"
#include "smartsprite.h"
#include "utils.h"
#include "writer.h"
#include "jail_audio.h"
#ifndef INTRO_H
#define INTRO_H
@@ -42,7 +43,7 @@ private:
LTexture *mBitmapTexture; // Textura con los graficos
LTexture *mTextTexture; // Textura con los caracteres de texto
SDL_Event *mEventHandler; // Manejador de eventos
std::string *mFileList; // Lista de ficheros
Asset *mAsset; // Objeto que gestiona todos los ficheros de recursos
Lang *mLang; // Objeto para gestionar los textos en diferentes idiomas
section_t mSection; // Estado del bucle principal para saber si continua o se sale
Uint32 mTicks; // Contador de ticks para ajustar la velocidad del programa
@@ -58,7 +59,7 @@ private:
public:
// Constructor
Intro(SDL_Renderer *renderer, Screen *screen, std::string *fileList, Lang *lang);
Intro(SDL_Renderer *renderer, Screen *screen, Asset *mAsset, Lang *lang);
// Destructor
~Intro();