clang-tidy
This commit is contained in:
@@ -32,37 +32,37 @@ class Notifier {
|
||||
|
||||
private:
|
||||
// --- Singleton ---
|
||||
static Notifier *instance_;
|
||||
static Notifier *instance;
|
||||
|
||||
// --- Tipos internos ---
|
||||
enum class NotificationStatus {
|
||||
RISING,
|
||||
STAY,
|
||||
VANISHING,
|
||||
FINISHED,
|
||||
};
|
||||
// --- Tipos internos ---
|
||||
enum class NotificationStatus {
|
||||
RISING,
|
||||
STAY,
|
||||
VANISHING,
|
||||
FINISHED,
|
||||
};
|
||||
|
||||
enum class NotificationShape {
|
||||
ROUNDED,
|
||||
SQUARED,
|
||||
};
|
||||
enum class NotificationShape {
|
||||
ROUNDED,
|
||||
SQUARED,
|
||||
};
|
||||
|
||||
// --- Estructura Notification ---
|
||||
struct Notification {
|
||||
std::shared_ptr<Texture> texture; // Textura de la notificación
|
||||
std::shared_ptr<Sprite> sprite; // Sprite asociado
|
||||
std::vector<std::string> texts; // Textos a mostrar
|
||||
int counter; // Contador de tiempo
|
||||
NotificationStatus state; // Estado de la notificación
|
||||
NotificationShape shape; // Forma de la notificación
|
||||
SDL_FRect rect; // Rectángulo de la notificación
|
||||
int y; // Posición vertical
|
||||
int travel_dist; // Distancia a recorrer
|
||||
std::string code; // Código identificador de la notificación
|
||||
// --- Estructura Notification ---
|
||||
struct Notification {
|
||||
std::shared_ptr<Texture> texture; // Textura de la notificación
|
||||
std::shared_ptr<Sprite> sprite; // Sprite asociado
|
||||
std::vector<std::string> texts; // Textos a mostrar
|
||||
int counter; // Contador de tiempo
|
||||
NotificationStatus state; // Estado de la notificación
|
||||
NotificationShape shape; // Forma de la notificación
|
||||
SDL_FRect rect; // Rectángulo de la notificación
|
||||
int y; // Posición vertical
|
||||
int travel_dist; // Distancia a recorrer
|
||||
std::string code; // Código identificador de la notificación
|
||||
|
||||
// Constructor
|
||||
explicit Notification()
|
||||
: texture(nullptr), sprite(nullptr), texts(), counter(0), state(NotificationStatus::RISING), shape(NotificationShape::SQUARED), rect{0, 0, 0, 0}, y(0), travel_dist(0), code("") {}
|
||||
// Constructor
|
||||
explicit Notification()
|
||||
: texture(nullptr), sprite(nullptr), texts(), counter(0), state(NotificationStatus::RISING), shape(NotificationShape::SQUARED), rect{0, 0, 0, 0}, y(0), travel_dist(0), code("") {}
|
||||
};
|
||||
|
||||
// --- Objetos y punteros ---
|
||||
|
||||
Reference in New Issue
Block a user