clang-tidy modernize
This commit is contained in:
@@ -77,23 +77,23 @@ class Balloon {
|
||||
void useNormalColor(); // Pone el color normal en el globo
|
||||
|
||||
// --- Getters ---
|
||||
float getPosX() const { return x_; }
|
||||
float getPosY() const { return y_; }
|
||||
int getWidth() const { return w_; }
|
||||
int getHeight() const { return h_; }
|
||||
BalloonSize getSize() const { return size_; }
|
||||
BalloonType getType() const { return type_; }
|
||||
Uint16 getScore() const { return score_; }
|
||||
Circle &getCollider() { return collider_; }
|
||||
Uint8 getMenace() const { return isEnabled() ? menace_ : 0; }
|
||||
Uint8 getPower() const { return power_; }
|
||||
bool isStopped() const { return stopped_; }
|
||||
bool isPowerBall() const { return type_ == BalloonType::POWERBALL; }
|
||||
bool isInvulnerable() const { return invulnerable_; }
|
||||
bool isBeingCreated() const { return being_created_; }
|
||||
bool isEnabled() const { return enabled_; }
|
||||
bool isUsingReversedColor() { return use_reversed_colors_; }
|
||||
bool canBePopped() const { return !isBeingCreated(); }
|
||||
[[nodiscard]] auto getPosX() const -> float { return x_; }
|
||||
[[nodiscard]] auto getPosY() const -> float { return y_; }
|
||||
[[nodiscard]] auto getWidth() const -> int { return w_; }
|
||||
[[nodiscard]] auto getHeight() const -> int { return h_; }
|
||||
[[nodiscard]] auto getSize() const -> BalloonSize { return size_; }
|
||||
[[nodiscard]] auto getType() const -> BalloonType { return type_; }
|
||||
[[nodiscard]] auto getScore() const -> Uint16 { return score_; }
|
||||
auto getCollider() -> Circle & { return collider_; }
|
||||
[[nodiscard]] auto getMenace() const -> Uint8 { return isEnabled() ? menace_ : 0; }
|
||||
[[nodiscard]] auto getPower() const -> Uint8 { return power_; }
|
||||
[[nodiscard]] auto isStopped() const -> bool { return stopped_; }
|
||||
[[nodiscard]] auto isPowerBall() const -> bool { return type_ == BalloonType::POWERBALL; }
|
||||
[[nodiscard]] auto isInvulnerable() const -> bool { return invulnerable_; }
|
||||
[[nodiscard]] auto isBeingCreated() const -> bool { return being_created_; }
|
||||
[[nodiscard]] auto isEnabled() const -> bool { return enabled_; }
|
||||
auto isUsingReversedColor() -> bool { return use_reversed_colors_; }
|
||||
[[nodiscard]] auto canBePopped() const -> bool { return !isBeingCreated(); }
|
||||
|
||||
// --- Setters ---
|
||||
void setVelY(float vel_y) { vy_ = vel_y; }
|
||||
|
||||
Reference in New Issue
Block a user