2021-06-16 19:11:00 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "classicactions.h"
|
|
|
|
#include "spritecontainer.h"
|
|
|
|
#include "classicspritefactory.h"
|
|
|
|
|
2021-06-23 21:18:33 +02:00
|
|
|
#include <SFML/Graphics/RenderTarget.hpp>
|
|
|
|
|
2021-06-16 19:11:00 +02:00
|
|
|
class ClassicSprite;
|
|
|
|
class ClassicNote;
|
|
|
|
|
|
|
|
class ClassicGraphicsManager
|
|
|
|
{
|
|
|
|
public:
|
2021-06-23 21:18:33 +02:00
|
|
|
explicit ClassicGraphicsManager(sf::RenderTarget& target);
|
2021-06-16 19:11:00 +02:00
|
|
|
|
2021-06-24 00:43:13 +02:00
|
|
|
void initGraphics(ClassicNote* note);
|
|
|
|
void resetGraphics(ClassicNote* note);
|
2021-06-23 21:18:33 +02:00
|
|
|
void draw(const ClassicNote *note);
|
2021-06-16 19:11:00 +02:00
|
|
|
|
|
|
|
private:
|
2021-06-23 21:18:33 +02:00
|
|
|
SpriteContainer<Type, ClassicSpriteFactory, ClassicSprite> _sprite_container;
|
|
|
|
sf::RenderTarget& _render_target;
|
2021-06-16 19:11:00 +02:00
|
|
|
};
|