Commit pa que Mon arregle el codi mentre em dutxe
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
#include <string> // for string
|
||||
#include <vector> // for vector
|
||||
class AnimatedSprite;
|
||||
class Texture;
|
||||
#include "animated_sprite.h"
|
||||
#include <memory>
|
||||
#include "texture.h"
|
||||
|
||||
struct explosion_texture_t
|
||||
{
|
||||
@@ -18,7 +19,7 @@ class Explosions
|
||||
private:
|
||||
// Variables
|
||||
std::vector<explosion_texture_t> textures; // Vector con las texturas a utilizar
|
||||
std::vector<AnimatedSprite *> explosions; // Lista con todas las explosiones
|
||||
std::vector<std::unique_ptr<AnimatedSprite>> explosions; // Lista con todas las explosiones
|
||||
|
||||
// Vacia el vector de elementos finalizados
|
||||
void freeExplosions();
|
||||
@@ -40,7 +41,7 @@ public:
|
||||
void render();
|
||||
|
||||
// Añade texturas al objeto
|
||||
void addTexture(int size, Texture *texture, std::vector<std::string> *animation);
|
||||
void addTexture(int size, std::shared_ptr<Texture> texture, std::vector<std::string> *animation);
|
||||
|
||||
// Añade una explosión
|
||||
void add(int x, int y, int size);
|
||||
|
||||
Reference in New Issue
Block a user