Continue arreglant cosetes amb cppcheck
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL2/SDL_rect.h> // for SDL_Rect
|
||||
#include <SDL2/SDL_stdinc.h> // for Uint32
|
||||
#include <memory> // for unique_ptr, shared_ptr
|
||||
#include <string> // for string
|
||||
#include <vector> // for vector
|
||||
#include "animated_sprite.h" // for SpriteAnimated
|
||||
#include "smart_sprite.h" // for SpriteAnimated
|
||||
#include "enter_name.h" // for EnterName
|
||||
#include "utils.h" // for Circle
|
||||
#include <SDL2/SDL_rect.h> // para SDL_Rect
|
||||
#include <SDL2/SDL_stdinc.h> // para Uint32
|
||||
#include <memory> // para unique_ptr, shared_ptr
|
||||
#include <string> // para string
|
||||
#include <vector> // para vector
|
||||
#include "animated_sprite.h" // para SpriteAnimated
|
||||
#include "smart_sprite.h" // para SpriteAnimated
|
||||
#include "enter_name.h" // para EnterName
|
||||
#include "utils.h" // para Circle
|
||||
class Texture;
|
||||
enum class InputType : int;
|
||||
enum class ScoreboardMode; // lines 12-12
|
||||
@@ -41,11 +41,11 @@ class Player
|
||||
{
|
||||
private:
|
||||
// Constantes
|
||||
static constexpr int POWERUP_COUNTER_ = 1500; // Duración del estado PowerUp
|
||||
static constexpr int INVULNERABLE_COUNTER_ = 200; // Duración del estado invulnerable
|
||||
static constexpr int WIDTH_ = 30; // Anchura
|
||||
static constexpr int HEIGHT_ = 30; // Altura
|
||||
static constexpr float BASE_SPEED_ = 1.5f; // Velocidad base del jugador
|
||||
static constexpr int POWERUP_COUNTER_ = 1500; // Duración del estado PowerUp
|
||||
static constexpr int INVULNERABLE_COUNTER_ = 200; // Duración del estado invulnerable
|
||||
static constexpr int WIDTH_ = 30; // Anchura
|
||||
static constexpr int HEIGHT_ = 30; // Altura
|
||||
static constexpr float BASE_SPEED_ = 1.5f; // Velocidad base del jugador
|
||||
|
||||
// Objetos y punteros
|
||||
std::unique_ptr<AnimatedSprite> player_sprite_; // Sprite para dibujar el jugador
|
||||
|
||||
Reference in New Issue
Block a user