Helico.h 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef HELICO_H_INCLUDED
  2. #define HELICO_H_INCLUDED
  3. /*Description:
  4. Ennemi standard: un petit helicopter qui se deplace à l'horizontal.
  5. */
  6. #include <iostream>
  7. #include <SDL/SDL.h>
  8. #include "Ennemy.h"
  9. #include "takeRand.h"
  10. class Helico : public Ennemy
  11. {
  12. public:
  13. Helico(SDL_Surface* ecran);//Constructeur standard
  14. Helico(SDL_Surface* ecran,int vie);//Constructeur vital
  15. Helico(SDL_Surface* ecran,int vie,int antiLatence);//Constructeur de chaîne
  16. ~Helico();
  17. void afficher();
  18. private:
  19. SDL_Surface* m_helico;
  20. SDL_Rect m_positionHelico;
  21. int m_vitesse;
  22. };
  23. class BossOne : public Ennemy
  24. {
  25. public:
  26. BossOne(SDL_Surface* ecran,Joueur* cible);
  27. ~BossOne();
  28. void afficher();
  29. private:
  30. SDL_Surface* m_bossOne;
  31. SDL_Surface* m_tir;
  32. SDL_Rect m_positionBoss;
  33. bool m_vaVersLeBas;
  34. bool m_vaVersLaDroite;
  35. int m_armeCycle;
  36. };
  37. #endif // HELICO_H_INCLUDED