Fantome.h 658 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef FANTOME_H
  2. #define FANTOME_H
  3. #include "Personnage.h"
  4. #include "Ogre.h"
  5. #include "Menestrel.h"
  6. #define TEMPS_MORT 5000
  7. class Fantome: public Personnage
  8. {
  9. public:
  10. Fantome(Niveau *terrain, Ogre *ogre, Menestrel *menestrel, Controle controle = local);
  11. ~Fantome();
  12. void deplacer();
  13. void positionner(SDL_Rect position, bool coordonnee = false);
  14. void afficher(SDL_Surface *ecran);
  15. void tuer();
  16. bool vivant();
  17. bool getMultiKill(int nbFantomes);
  18. private:
  19. Controle m_controle;
  20. Ogre *m_ogre;
  21. Menestrel *m_menestrel;
  22. Uint32 m_tempsRestant;
  23. bool m_vivant;
  24. static int m_multiKill;
  25. };
  26. #endif // FANTOME_H