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>
|
|
|
|
|
|
|
|
enum Etat {
|
|
|
|
APPROCHE,
|
|
|
|
MISS,
|
|
|
|
EARLY,
|
|
|
|
GOOD,
|
|
|
|
GREAT,
|
|
|
|
PERFECT
|
|
|
|
};
|
|
|
|
|
|
|
|
class Marker {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2017-08-17 23:41:11 +02:00
|
|
|
Marker(std::string folder = "mk0013");
|
2017-08-17 19:10:53 +02:00
|
|
|
sf::Sprite getSprite(Etat etat, int frame);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
std::map<std::string,sf::Texture> textures;
|
|
|
|
std::string path;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //FEIS_MARKER_H
|