neteja tidy a source/game (fixes d'arrel: BulletKind enum class, signatures, branches)

This commit is contained in:
2026-05-14 21:52:45 +02:00
parent 0ee117135c
commit 9a2da460cc
19 changed files with 643 additions and 693 deletions
+9 -9
View File
@@ -53,7 +53,7 @@ class Item {
~Item();
Item(const Item &) = delete;
Item &operator=(const Item &) = delete;
auto operator=(const Item &) -> Item & = delete;
// Centra el objeto en la posición X
void allignTo(int x);
@@ -74,26 +74,26 @@ class Item {
void checkTimeToLive();
// Obtiene del valor de la variable
float getPosX();
[[nodiscard]] auto getPosX() const -> float;
// Obtiene del valor de la variable
float getPosY();
[[nodiscard]] auto getPosY() const -> float;
// Obtiene del valor de la variable
int getWidth();
[[nodiscard]] auto getWidth() const -> int;
// Obtiene del valor de la variable
int getHeight();
[[nodiscard]] auto getHeight() const -> int;
// Obtiene del valor de la variable
int getClass();
[[nodiscard]] auto getClass() const -> int;
// Obtiene el valor de la variable
bool isEnabled();
[[nodiscard]] auto isEnabled() const -> bool;
// Obtiene el circulo de colisión
circle_t &getCollider();
auto getCollider() -> circle_t &;
// Informa si el objeto ha colisionado con el suelo
bool isOnFloor();
[[nodiscard]] auto isOnFloor() const -> bool;
};