clang-tidy modernize
This commit is contained in:
@@ -19,10 +19,10 @@ class SmartSprite : public AnimatedSprite {
|
||||
void render() override; // Dibuja el sprite
|
||||
|
||||
// --- Getters ---
|
||||
int getDestX() const { return dest_x_; } // Obtiene la posición de destino en X
|
||||
int getDestY() const { return dest_y_; } // Obtiene la posición de destino en Y
|
||||
bool isOnDestination() const { return on_destination_; } // Indica si está en el destino
|
||||
bool hasFinished() const { return finished_; } // Indica si ya ha terminado
|
||||
auto getDestX() const -> int { return dest_x_; } // Obtiene la posición de destino en X
|
||||
auto getDestY() const -> int { return dest_y_; } // Obtiene la posición de destino en Y
|
||||
auto isOnDestination() const -> bool { return on_destination_; } // Indica si está en el destino
|
||||
auto hasFinished() const -> bool { return finished_; } // Indica si ya ha terminado
|
||||
|
||||
// --- Setters ---
|
||||
void setFinishedCounter(int value) { finished_counter_ = value; } // Establece el contador para deshabilitarlo
|
||||
|
||||
Reference in New Issue
Block a user