cppcheck
This commit is contained in:
@@ -81,7 +81,7 @@ class Player {
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Player(float x, int y, SDL_Renderer *renderer, std::vector<Texture *> texture, std::vector<std::vector<std::string> *> animations);
|
||||
Player(float x, int y, SDL_Renderer *renderer, const std::vector<Texture *> &texture, const std::vector<std::vector<std::string> *> &animations);
|
||||
|
||||
// Destructor
|
||||
~Player();
|
||||
@@ -96,7 +96,7 @@ class Player {
|
||||
void render();
|
||||
|
||||
// Pone las texturas del jugador
|
||||
void setPlayerTextures(std::vector<Texture *> texture);
|
||||
void setPlayerTextures(const std::vector<Texture *> &texture);
|
||||
|
||||
// Actua en consecuencia de la entrada recibida
|
||||
void setInput(Uint8 input);
|
||||
|
||||
Reference in New Issue
Block a user