Fenetre.h 857 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef FENETRE_H_INCLUDED
  2. #define FENETRE_H_INCLUDED
  3. #include <iostream>
  4. #include <SDL/SDL.h>
  5. #undef main
  6. #include <ctime>
  7. #include "Input.h"
  8. #include "Ogre.h"
  9. #include "Menestrel.h"
  10. #include "Niveau.h"
  11. #include "Fantome.h"
  12. #include "Menu/menu.h"
  13. /**
  14. fenetre adapté a des cases de 30x30 pixels
  15. */
  16. enum TypeConnexion {HOST, CLIENT, LOCAL};
  17. class Fenetre
  18. {
  19. public:
  20. Fenetre();
  21. ~Fenetre();
  22. bool init();
  23. void jeuhost();
  24. void jeuclient();
  25. void jeulocal();
  26. bool chargerNiveau(std::string nomNiveau);
  27. void viderFantomes();
  28. void fin();
  29. private:
  30. SDL_Surface *m_ecran, *m_vies, *m_grosBourin;
  31. SDL_Rect m_posPersos, m_posFantomes;
  32. Input m_input;
  33. TypeConnexion typeCo;
  34. Niveau m_terrain;
  35. Ogre m_ogre;
  36. Menestrel m_menestrel;
  37. std::vector<Fantome*> m_fantomes;
  38. };
  39. #endif // FENETRE_H_INCLUDED