1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef GESTIONNAIRENIVEAUX_H_INCLUDED
- #define GESTIONNAIRENIVEAUX_H_INCLUDED
- #include <fstream>
- #include "Bouton.h"
- #include "transform.h"
- #include "../Niveau.h"
- #define NB_BOUTONS 16
- class GestionnaireNiveaux
- {
- public:
- GestionnaireNiveaux(SDL_Surface *screen);
- ~GestionnaireNiveaux();
- void calculer(int const xSouris, int const ySouris);
- void afficher();
- void clic(int const xSouris, int const ySouris);
- bool estChoisi();
- std::string getChoix();
- protected:
- void reinitialiserPage();
- void allerALaPage(Uint32 numeroPage);
- std::string nomDuFichier(Uint8 IDTab);
- private:
- Bouton* m_tableauBoutons[NB_BOUTONS];
- SDL_Surface* m_apercu[NB_BOUTONS];
- SDL_Surface* m_font;
- Bouton* m_pagePrecedente;
- Bouton* m_pageSuivante;
- Uint32 m_pageActuelle;
- bool m_estChoisi;
- std::string m_choixJoueur;
- SDL_Surface* m_screen;
- };
- #endif
|