project-kyoku/modes/classicmode/game/classicsprite.h

30 lines
825 B
C
Raw Normal View History

#pragma once
#include "tools/mathutils.h"
#include "sprite.h"
#include <SFML/Graphics/RectangleShape.hpp>
class ClassicSprite : public Sprite, public sf::Drawable
{
public:
explicit ClassicSprite(const sf::RectangleShape& shape);
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
virtual void reset() override;
void setCoordinates(const Coordinates &coordinates);
void setTrailCoordinates(const Coordinates &coordinates);
Coordinates coordinates() const;
2021-07-14 22:45:52 -04:00
Coordinates trailCoordinates() const;
void setColor(const sf::Color& color);
void setTrailColor(const sf::Color& color);
sf::Color color() const;
sf::Color trailColor() const;
private:
2021-06-16 13:11:00 -04:00
sf::RectangleShape _prototype;
sf::RectangleShape _shape;
2021-06-11 12:58:44 -04:00
sf::RectangleShape _trail;
};