treball en curs: correccions de tidy

This commit is contained in:
2026-05-16 15:12:28 +02:00
parent b1392d0c00
commit 18cd287808
5 changed files with 558 additions and 578 deletions
+32 -32
View File
@@ -61,7 +61,7 @@ class Balloon {
static constexpr int POWERBALL_COUNTER = 8;
Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer); // Constructor
~Balloon(); // Destructor
~Balloon(); // Destructor
Balloon(const Balloon &) = delete;
auto operator=(const Balloon &) -> Balloon & = delete;
@@ -73,35 +73,35 @@ class Balloon {
void pop(); // Explosiona el globo
void update(); // Actualiza al globo a su posicion, animación y controla los contadores
[[nodiscard]] auto isEnabled() const -> bool; // Comprueba si el globo está habilitado
[[nodiscard]] auto isStopped() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isBlinking() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isVisible() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isInvulnerable() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isBeingCreated() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isPopping() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isEnabled() const -> bool; // Comprueba si el globo está habilitado
[[nodiscard]] auto isStopped() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isBlinking() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isVisible() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isInvulnerable() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isBeingCreated() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto isPopping() const -> bool; // Obtiene del valor de la variable
[[nodiscard]] auto getPosX() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getPosY() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getVelY() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getWidth() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getHeight() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getKind() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getSize() const -> Uint8; // Obtiene del valor de la variable
[[nodiscard]] auto getClass() const -> Uint8; // Obtiene la clase a la que pertenece el globo
[[nodiscard]] auto getPosX() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getPosY() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getVelY() const -> float; // Obtiene del valor de la variable
[[nodiscard]] auto getWidth() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getHeight() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getKind() const -> int; // Obtiene del valor de la variable
[[nodiscard]] auto getSize() const -> Uint8; // Obtiene del valor de la variable
[[nodiscard]] auto getClass() const -> Uint8; // Obtiene la clase a la que pertenece el globo
[[nodiscard]] auto getStoppedTimer() const -> Uint16; // Obtiene del valor de la variable
[[nodiscard]] auto getScore() const -> Uint16; // Obtiene del valor de la variable
[[nodiscard]] auto getMenace() const -> Uint8; // Obtiene le valor de la variable
[[nodiscard]] auto getPower() const -> Uint8; // Obtiene le valor de la variable
[[nodiscard]] auto getScore() const -> Uint16; // Obtiene del valor de la variable
[[nodiscard]] auto getMenace() const -> Uint8; // Obtiene le valor de la variable
[[nodiscard]] auto getPower() const -> Uint8; // Obtiene le valor de la variable
void setVelY(float vel_y); // Establece el valor de la variable
void setSpeed(float speed); // Establece el valor de la variable
void setStop(bool state); // Establece el valor de la variable
void setBlink(bool value); // Establece el valor de la variable
void setVisible(bool value); // Establece el valor de la variable
void setInvulnerable(bool value); // Establece el valor de la variable
void setPopping(bool value); // Establece el valor de la variable
void setStoppedTimer(Uint16 time); // Establece el valor de la variable
void setVelY(float vel_y); // Establece el valor de la variable
void setSpeed(float speed); // Establece el valor de la variable
void setStop(bool state); // Establece el valor de la variable
void setBlink(bool value); // Establece el valor de la variable
void setVisible(bool value); // Establece el valor de la variable
void setInvulnerable(bool value); // Establece el valor de la variable
void setPopping(bool value); // Establece el valor de la variable
void setStoppedTimer(Uint16 time); // Establece el valor de la variable
auto getCollider() -> Circle &; // Obtiene el circulo de colisión
@@ -156,11 +156,11 @@ class Balloon {
Uint8 power_; // Cantidad de poder que alberga el globo
Bouncing bouncing_; // Contiene las variables para el efecto de rebote
void updateColliders(); // Alinea el circulo de colisión con la posición del objeto globo
void bounceStart(); // Activa el efecto
void bounceStop(); // Detiene el efecto
void updateBounce(); // Aplica el efecto
void updateAnimation(); // Establece la animación correspondiente
void updateColliders(); // Alinea el circulo de colisión con la posición del objeto globo
void bounceStart(); // Activa el efecto
void bounceStop(); // Detiene el efecto
void updateBounce(); // Aplica el efecto
void updateAnimation(); // Establece la animación correspondiente
void setBeingCreated(bool value); // Establece el valor de la variable
void updateState(); // Actualiza los estados del globo