neteja final tidy/cppcheck: const*, static, renames de constants
This commit is contained in:
@@ -32,7 +32,7 @@ auto loadAnimationFromMemory(Texture *texture, const std::vector<uint8_t> &bytes
|
||||
|
||||
class AnimatedSprite : public MovingSprite {
|
||||
public:
|
||||
explicit AnimatedSprite(Texture *texture = nullptr, SDL_Renderer *renderer = nullptr, const std::string &file = "", std::vector<std::string> *buffer = nullptr); // Constructor
|
||||
explicit AnimatedSprite(Texture *texture = nullptr, SDL_Renderer *renderer = nullptr, const std::string &file = "", const std::vector<std::string> *buffer = nullptr); // Constructor
|
||||
AnimatedSprite(SDL_Renderer *renderer, AnimatedSpriteData *data);
|
||||
|
||||
~AnimatedSprite() override; // Destructor
|
||||
@@ -57,7 +57,7 @@ class AnimatedSprite : public MovingSprite {
|
||||
auto getAnimationClip(int index_a = 0, Uint8 index_f = 0) -> SDL_Rect;
|
||||
|
||||
auto getIndex(const std::string &name) -> int; // Obtiene el indice de la animación a partir del nombre
|
||||
auto loadFromVector(std::vector<std::string> *source) -> bool; // Carga la animación desde un vector
|
||||
auto loadFromVector(const std::vector<std::string> *source) -> bool; // Carga la animación desde un vector
|
||||
|
||||
void setCurrentAnimation(const std::string &name = "default"); // Establece la animacion actual
|
||||
void setCurrentAnimation(int index = 0);
|
||||
|
||||
Reference in New Issue
Block a user