F.E.I.S/Marker.h
2019-01-14 21:43:56 +01:00

38 lines
549 B
C++

//
// Created by Syméon on 17/08/2017.
//
//
// Un objet marker contient les différentes textures d'un marker choisi
//
#ifndef FEIS_MARKER_H
#define FEIS_MARKER_H
#include <iostream>
#include <SFML/Graphics.hpp>
#include <map>
enum MarkerEndingState {
MISS,
EARLY,
GOOD,
GREAT,
PERFECT
};
class Marker {
public:
Marker(std::string folder = "mk0013");
std::optional<sf::Texture> getSprite(MarkerEndingState state, float seconds);
private:
std::map<std::string,sf::Texture> textures;
std::string path;
};
#endif //FEIS_MARKER_H