2016-04-17 21:12:19 +00:00
|
|
|
#ifndef __SKIZZLE_RULES_HPP__
|
|
|
|
#define __SKIZZLE_RULES_HPP__
|
2016-04-11 19:38:12 +00:00
|
|
|
|
|
|
|
#include "state.hpp"
|
|
|
|
|
2016-04-12 16:11:36 +00:00
|
|
|
class Manager;
|
|
|
|
|
2016-04-11 19:38:12 +00:00
|
|
|
/**
|
|
|
|
* La classe Rules affiche les règles du jeu
|
|
|
|
*/
|
|
|
|
class Rules : public State {
|
|
|
|
private:
|
|
|
|
sf::Sprite background;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Rules(Manager& manager);
|
|
|
|
virtual ~Rules();
|
|
|
|
|
2016-04-17 13:25:21 +00:00
|
|
|
/**
|
|
|
|
* Active l'état
|
|
|
|
*/
|
|
|
|
virtual void enable();
|
|
|
|
|
2016-04-11 19:38:12 +00:00
|
|
|
/**
|
|
|
|
* Traite l'événement donné
|
|
|
|
*/
|
|
|
|
virtual void processEvent(const sf::Event& event);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Demande le dessin d'une frame
|
|
|
|
*/
|
|
|
|
virtual void frame();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|