Commit de vesprà tirada a la brossa
This commit is contained in:
@@ -15,25 +15,25 @@ protected:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
explicit Sprite(int x = 0, int y = 0, int w = 0, int h = 0, std::shared_ptr<Texture> texture = nullptr);
|
||||
explicit Sprite(SDL_Rect rect, std::shared_ptr<Texture> texture = nullptr);
|
||||
explicit Sprite(std::shared_ptr<Texture> texture = nullptr);
|
||||
Sprite(std::shared_ptr<Texture>, int x, int y, int w, int h);
|
||||
Sprite(std::shared_ptr<Texture>, SDL_Rect rect);
|
||||
explicit Sprite(std::shared_ptr<Texture>);
|
||||
|
||||
// Destructor
|
||||
virtual ~Sprite() = default;
|
||||
~Sprite() = default;
|
||||
|
||||
// Muestra el sprite por pantalla
|
||||
virtual void render();
|
||||
|
||||
// Obten el valor de la variable
|
||||
int getIntPosX() const;
|
||||
int getIntPosY() const;
|
||||
int getPosX() const;
|
||||
int getPosY() const;
|
||||
int getWidth() const;
|
||||
int getHeight() const;
|
||||
|
||||
// Devuelve el rectangulo donde está el sprite
|
||||
virtual SDL_Rect getPos() const;
|
||||
|
||||
SDL_Rect getPos() const;
|
||||
|
||||
// Establece el valor de la variable
|
||||
void setPosX(int x);
|
||||
void setPosY(int y);
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
// Establece la posición del objeto
|
||||
void setPos(int x, int y);
|
||||
void setPos(SDL_Point p);
|
||||
virtual void setPos(SDL_Rect r);
|
||||
void setPos(SDL_Rect r);
|
||||
|
||||
// Incrementa el valor de la variable
|
||||
void incPosX(int value);
|
||||
|
||||
Reference in New Issue
Block a user