Revisada la carrega de recursos en game.cpp
This commit is contained in:
@@ -30,15 +30,15 @@ protected:
|
||||
void animate();
|
||||
|
||||
// Carga la animación desde un fichero
|
||||
std::vector<Animation> loadFromFile(std::string filePath);
|
||||
std::vector<Animation> loadFromFile(const std::string &file_path);
|
||||
|
||||
// Carga la animación desde un vector
|
||||
bool loadFromVector(std::vector<std::string> *source);
|
||||
bool loadFromVector(const std::vector<std::string> &source);
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
AnimatedSprite(std::shared_ptr<Texture> texture, const std::string &file_path);
|
||||
AnimatedSprite(std::shared_ptr<Texture> texture, std::vector<std::string> *animations);
|
||||
AnimatedSprite(std::shared_ptr<Texture> texture, const std::vector<std::string> &animations);
|
||||
explicit AnimatedSprite(std::shared_ptr<Texture> texture);
|
||||
|
||||
// Destructor
|
||||
|
||||
Reference in New Issue
Block a user