neteja cppcheck/tidy i elimina sistema de paletes mort
This commit is contained in:
+14
-23
@@ -53,12 +53,6 @@ struct color_t {
|
||||
b(blue) {}
|
||||
};
|
||||
|
||||
// Tipos de paleta
|
||||
enum palette_e {
|
||||
p_zxspectrum,
|
||||
p_zxarne
|
||||
};
|
||||
|
||||
// Estructura para saber la seccion y subseccion del programa
|
||||
struct section_t {
|
||||
Uint8 name;
|
||||
@@ -83,49 +77,46 @@ struct input_t {
|
||||
};
|
||||
|
||||
// Calcula el cuadrado de la distancia entre dos puntos
|
||||
double distanceSquared(int x1, int y1, int x2, int y2);
|
||||
auto distanceSquared(int x1, int y1, int x2, int y2) -> double;
|
||||
|
||||
// Detector de colisiones entre dos circulos
|
||||
bool checkCollision(const circle_t &a, const circle_t &b);
|
||||
auto checkCollision(const circle_t &a, const circle_t &b) -> bool;
|
||||
|
||||
// Detector de colisiones entre un circulo y un rectangulo
|
||||
bool checkCollision(const circle_t &a, const SDL_Rect &b);
|
||||
auto checkCollision(const circle_t &a, const SDL_Rect &b) -> bool;
|
||||
|
||||
// Detector de colisiones entre un dos rectangulos
|
||||
bool checkCollision(const SDL_Rect &a, const SDL_Rect &b);
|
||||
auto checkCollision(const SDL_Rect &a, const SDL_Rect &b) -> bool;
|
||||
|
||||
// Detector de colisiones entre un punto y un rectangulo
|
||||
bool checkCollision(const SDL_Point &p, const SDL_Rect &r);
|
||||
auto checkCollision(const SDL_Point &p, const SDL_Rect &r) -> bool;
|
||||
|
||||
// Detector de colisiones entre una linea horizontal y un rectangulo
|
||||
bool checkCollision(const h_line_t &l, const SDL_Rect &r);
|
||||
auto checkCollision(const h_line_t &l, const SDL_Rect &r) -> bool;
|
||||
|
||||
// Detector de colisiones entre una linea vertical y un rectangulo
|
||||
bool checkCollision(const v_line_t &l, const SDL_Rect &r);
|
||||
auto checkCollision(const v_line_t &l, const SDL_Rect &r) -> bool;
|
||||
|
||||
// Detector de colisiones entre una linea horizontal y un punto
|
||||
bool checkCollision(const h_line_t &l, const SDL_Point &p);
|
||||
auto checkCollision(const h_line_t &l, const SDL_Point &p) -> bool;
|
||||
|
||||
// Detector de colisiones entre dos lineas
|
||||
SDL_Point checkCollision(const line_t &l1, const line_t &l2);
|
||||
auto checkCollision(const line_t &l1, const line_t &l2) -> SDL_Point;
|
||||
|
||||
// Detector de colisiones entre dos lineas
|
||||
SDL_Point checkCollision(const d_line_t &l1, const v_line_t &l2);
|
||||
auto checkCollision(const d_line_t &l1, const v_line_t &l2) -> SDL_Point;
|
||||
|
||||
// Detector de colisiones entre un punto y una linea diagonal
|
||||
bool checkCollision(const SDL_Point &p, const d_line_t &l);
|
||||
auto checkCollision(const SDL_Point &p, const d_line_t &l) -> bool;
|
||||
|
||||
// Normaliza una linea diagonal
|
||||
void normalizeLine(d_line_t &l);
|
||||
|
||||
// Devuelve un color_t a partir de un string
|
||||
color_t stringToColor(palette_e pal, const std::string &str);
|
||||
|
||||
// Convierte una cadena en un valor booleano
|
||||
bool stringToBool(const std::string &str);
|
||||
auto stringToBool(const std::string &str) -> bool;
|
||||
|
||||
// Convierte un valor booleano en una cadena
|
||||
std::string boolToString(bool value);
|
||||
auto boolToString(bool value) -> std::string;
|
||||
|
||||
// Convierte una cadena a minusculas
|
||||
std::string toLower(const std::string &str);
|
||||
auto toLower(const std::string &str) -> std::string;
|
||||
|
||||
Reference in New Issue
Block a user