project-kyoku/src/classicgame/classicsprite.h

19 lines
514 B
C
Raw Normal View History

#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;
private:
sf::RectangleShape _shape;
2021-06-11 12:58:44 -04:00
sf::RectangleShape _trail;
};