31 lines
476 B
C++
31 lines
476 B
C++
|
#ifndef __PTF_RULES_HPP__
|
||
|
#define __PTF_RULES_HPP__
|
||
|
|
||
|
#include "manager.hpp"
|
||
|
#include "state.hpp"
|
||
|
|
||
|
/**
|
||
|
* La classe Rules affiche les règles du jeu
|
||
|
*/
|
||
|
class Rules : public State {
|
||
|
private:
|
||
|
sf::Sprite background;
|
||
|
|
||
|
public:
|
||
|
Rules(Manager& manager);
|
||
|
virtual ~Rules();
|
||
|
|
||
|
/**
|
||
|
* Traite l'événement donné
|
||
|
*/
|
||
|
virtual void processEvent(const sf::Event& event);
|
||
|
|
||
|
/**
|
||
|
* Demande le dessin d'une frame
|
||
|
*/
|
||
|
virtual void frame();
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|