2021-06-09 14:08:58 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "sprite.h"
|
|
|
|
#include "SFML/Graphics/RectangleShape.hpp"
|
|
|
|
|
|
|
|
class ClassicSprite : public Sprite, public sf::Drawable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ClassicSprite(const sf::RectangleShape& shape);
|
|
|
|
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
|
|
|
|
2021-06-11 12:58:44 -04:00
|
|
|
void setCoordinates(float x, float y, float trail_x, float trail_y) noexcept;
|
|
|
|
void setTrailCoordinates(float trail_x, float trail_y) noexcept;
|
2021-06-09 14:08:58 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
sf::RectangleShape _shape;
|
2021-06-11 12:58:44 -04:00
|
|
|
sf::RectangleShape _trail;
|
2021-06-09 14:08:58 -04:00
|
|
|
};
|