diff --git a/units/asset.cpp b/units/asset.cpp index e11e176..bae9371 100644 --- a/units/asset.cpp +++ b/units/asset.cpp @@ -4,7 +4,6 @@ // Constructor Asset::Asset(string executablePath) { - //cout << "Construido Asset" << endl; this->executablePath = executablePath.substr(0, executablePath.find_last_of("\\/")); longestName = 0; verbose = true; @@ -13,7 +12,6 @@ Asset::Asset(string executablePath) // Destructot Asset::~Asset() { - //cout << "Destruido Asset" << endl; } // Añade un elemento a la lista diff --git a/units/movingsprite.cpp b/units/movingsprite.cpp index a36eb8f..f7429e7 100644 --- a/units/movingsprite.cpp +++ b/units/movingsprite.cpp @@ -5,7 +5,6 @@ // Constructor MovingSprite::MovingSprite(float x, float y, int w, int h, float velx, float vely, float accelx, float accely, Texture *texture, SDL_Renderer *renderer) { - //std::cout << "Construido MovingSprite" << std::endl; // Copia los punteros this->texture = texture; this->renderer = renderer; @@ -58,7 +57,6 @@ MovingSprite::MovingSprite(float x, float y, int w, int h, float velx, float vel // Destructor MovingSprite::~MovingSprite() { - //std::cout << "Destruido MovingSprite" << std::endl; } // Reinicia todas las variables diff --git a/units/notify.cpp b/units/notify.cpp index c6ff243..9c70b94 100644 --- a/units/notify.cpp +++ b/units/notify.cpp @@ -6,8 +6,6 @@ // Constructor Notify::Notify(SDL_Renderer *renderer, string iconFile, string bitmapFile, string textFile, string soundFile, options_t *options) { - //std::cout << "Construido Notify" << std::endl; - // Inicializa variables this->renderer = renderer; this->options = options; @@ -23,8 +21,6 @@ Notify::Notify(SDL_Renderer *renderer, string iconFile, string bitmapFile, strin // Destructor Notify::~Notify() { - //std::cout << "Destruido Notify" << std::endl; - // Libera la memoria de los objetos if (iconTexture != nullptr) { diff --git a/units/screen.cpp b/units/screen.cpp index 6e72207..7a46981 100644 --- a/units/screen.cpp +++ b/units/screen.cpp @@ -5,7 +5,6 @@ // Constructor Screen::Screen(SDL_Window *window, SDL_Renderer *renderer, options_t *options) { - //cout << "Construido Screen" << endl; // Inicializa variables this->window = window; this->renderer = renderer; @@ -38,7 +37,6 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer, options_t *options) // Destructor Screen::~Screen() { - //cout << "Destruido Screen" << endl; if (notify != nullptr) { delete notify; diff --git a/units/sprite.cpp b/units/sprite.cpp index 3811377..4db4ca1 100644 --- a/units/sprite.cpp +++ b/units/sprite.cpp @@ -4,7 +4,6 @@ // Constructor Sprite::Sprite(int x, int y, int w, int h, Texture *texture, SDL_Renderer *renderer) { - //std::cout << "Construido Sprite" << std::endl; // Establece la posición X,Y del sprite this->x = x; this->y = y; @@ -30,7 +29,6 @@ Sprite::Sprite(int x, int y, int w, int h, Texture *texture, SDL_Renderer *rende Sprite::Sprite(SDL_Rect rect, Texture *texture, SDL_Renderer *renderer) { - //std::cout << "Construido Sprite" << std::endl; // Establece la posición X,Y del sprite this->x = rect.x; this->y = rect.y; @@ -57,7 +55,6 @@ Sprite::Sprite(SDL_Rect rect, Texture *texture, SDL_Renderer *renderer) // Destructor Sprite::~Sprite() { - //std::cout << "Destruido Sprite" << std::endl; } // Muestra el sprite por pantalla diff --git a/units/text.cpp b/units/text.cpp index c3267e0..de659d4 100644 --- a/units/text.cpp +++ b/units/text.cpp @@ -79,7 +79,6 @@ textFile_t LoadTextFile(string file, bool verbose) // Constructor Text::Text(string textFile, string bitmapFile, SDL_Renderer *renderer) { - //std::cout << "Construido Text" << std::endl; // Carga los offsets desde el fichero textFile_t tf = LoadTextFile(textFile); @@ -105,7 +104,6 @@ Text::Text(string textFile, string bitmapFile, SDL_Renderer *renderer) // Constructor Text::Text(string textFile, Texture *texture, SDL_Renderer *renderer) { - //std::cout << "Construido Text" << std::endl; // Carga los offsets desde el fichero textFile_t tf = LoadTextFile(textFile); @@ -130,7 +128,6 @@ Text::Text(string textFile, Texture *texture, SDL_Renderer *renderer) // Constructor Text::Text(textFile_t *textFile, Texture *texture, SDL_Renderer *renderer) { - //std::cout << "Construido Text" << std::endl; // Inicializa variables desde la estructura boxHeight = textFile->boxHeight; boxWidth = textFile->boxWidth; @@ -152,7 +149,6 @@ Text::Text(textFile_t *textFile, Texture *texture, SDL_Renderer *renderer) // Destructor Text::~Text() { - //std::cout << "Destruido Text" << std::endl; if (sprite != nullptr) { delete sprite; diff --git a/units/texture.cpp b/units/texture.cpp index 93f9bbf..de125eb 100644 --- a/units/texture.cpp +++ b/units/texture.cpp @@ -7,7 +7,6 @@ // Constructor Texture::Texture(SDL_Renderer *renderer, string path, bool verbose) { - //cout << "Construido Texture" << endl; // Copia punteros this->renderer = renderer; this->path = path; @@ -27,8 +26,6 @@ Texture::Texture(SDL_Renderer *renderer, string path, bool verbose) // Destructor Texture::~Texture() { - //cout << "Destruido Texture" << endl; - // Libera memoria unload(); }