Arreglos y limpieza de código

This commit is contained in:
2022-10-19 09:53:23 +02:00
parent b07baa4669
commit 4f1a596e46
37 changed files with 159 additions and 170 deletions

View File

@@ -2,7 +2,7 @@
#include "player.h"
// Constructor
Player::Player(float x, int y, SDL_Renderer *renderer, std::vector<LTexture *> texture, std::vector<std::vector<std::string> *> animations)
Player::Player(float x, int y, SDL_Renderer *renderer, std::vector<Texture *> texture, std::vector<std::vector<std::string> *> animations)
{
// Copia los punteros
this->renderer = renderer;
@@ -578,7 +578,7 @@ void Player::shiftColliders()
}
// Obtiene el puntero a la textura con los gráficos de la animación de morir
LTexture *Player::getDeadTexture()
Texture *Player::getDeadTexture()
{
return deathSprite->getTexture();
;
@@ -617,7 +617,7 @@ void Player::updatePowerUpHeadOffset()
}
// Pone las texturas del jugador
void Player::setPlayerTextures(std::vector<LTexture *> texture)
void Player::setPlayerTextures(std::vector<Texture *> texture)
{
headSprite->setTexture(texture.at(0));
bodySprite->setTexture(texture.at(1));