F.E.I.S/Marker.h

38 lines
573 B
C
Raw Normal View History

2017-08-17 19:10:53 +02:00
//
// Created by Syméon on 17/08/2017.
//
2017-08-17 23:41:11 +02:00
//
// Un objet marker contient les différentes textures d'un marker choisi
//
2017-08-17 19:10:53 +02:00
#ifndef FEIS_MARKER_H
#define FEIS_MARKER_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include <map>
2019-01-14 21:43:56 +01:00
enum MarkerEndingState {
2017-08-17 19:10:53 +02:00
MISS,
EARLY,
GOOD,
GREAT,
PERFECT
};
class Marker {
public:
2017-08-17 23:41:11 +02:00
Marker(std::string folder = "mk0013");
2019-01-17 03:02:37 +01:00
std::optional<std::reference_wrapper<sf::Texture>> getSprite(MarkerEndingState state, float seconds);
2017-08-17 19:10:53 +02:00
private:
std::map<std::string,sf::Texture> textures;
std::string path;
};
#endif //FEIS_MARKER_H