Sniper.h 778 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef SNIPER_H
  2. #define SNIPER_H
  3. #include "../Shot.h"
  4. #define SNIPER_DEGAT 4000
  5. #define SNIPER_MIN_SPEED 1
  6. #define SNIPER_MAX_SPEED 40
  7. #define SNIPER_ACC 1
  8. #define SNIPER_BREAK 10
  9. /**
  10. Jovian Hersemeule
  11. Description du Sniper :
  12. Le tir de type Sniper est horizontal et accelerant. PLus sa vitesse est
  13. grande, plus il fait de dégâts.
  14. **/
  15. class Sniper : public Shot
  16. {
  17. /// Méthodes
  18. public:
  19. Sniper();
  20. Sniper( Sint16 x, Sint16 y, bool ally = false );
  21. virtual ~Sniper();
  22. virtual void update();
  23. virtual void draw( SDL_Surface* screen );
  24. virtual bool damageSolid( Uint8** solid, const Uint16 dimH, const Uint16 dimW, const SDL_Rect& hitbox );
  25. /// Attributs
  26. protected:
  27. int m_velocity;
  28. };
  29. #endif // SNIPER_H