#ifndef BACKGROUND_H_ # define BACKGROUND_H_ #include #include #include #include "IRenderable.hh" #include "Core/Core.hh" namespace DamnCute { class Background : public IRenderable { private: Background(const Background&); float _XSpeed; float _YSpeed; sf::Sprite _bg; sf::Texture _tex; public: Background(const std::string&, int = 0, int = 0); virtual ~Background() = default; float getXScrollSpeed() const ; float getYScrollSpeed() const ; void setScrollSpeed(float, float); void setPosition(int, int); virtual void update(sf::RenderTarget*); }; } #endif /* !BACKGROUND_H_ */