2021-06-16 19:11:00 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-14 21:02:23 +02:00
|
|
|
#include "spritecontainer.h"
|
2021-11-17 23:14:52 +01:00
|
|
|
#include "classicmode/classicactions.h"
|
2021-06-16 19:11:00 +02:00
|
|
|
#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-07-15 04:45:52 +02:00
|
|
|
std::shared_ptr<ClassicSprite> getSprite(Type type);
|
|
|
|
void draw(const std::shared_ptr<ClassicSprite> &sprite);
|
|
|
|
void drawLine(const Coordinates &p1, const Coordinates &p2);
|
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
|
|
|
};
|