project-kyoku/src/classicgame/classicgraphicsmanager.h

25 lines
547 B
C
Raw Normal View History

2021-06-16 13:11:00 -04:00
#pragma once
#include "classicactions.h"
#include "spritecontainer.h"
#include "classicspritefactory.h"
#include <SFML/Graphics/RenderTarget.hpp>
2021-06-16 13:11:00 -04:00
class ClassicSprite;
class ClassicNote;
class ClassicGraphicsManager
{
public:
explicit ClassicGraphicsManager(sf::RenderTarget& target);
2021-06-16 13:11:00 -04:00
void initSprite(ClassicNote* note);
void resetSprite(ClassicNote* note);
void draw(const ClassicNote *note);
2021-06-16 13:11:00 -04:00
private:
SpriteContainer<Type, ClassicSpriteFactory, ClassicSprite> _sprite_container;
sf::RenderTarget& _render_target;
2021-06-16 13:11:00 -04:00
};