123456789101112131415161718192021222324252627282930313233 |
- #ifndef GUN_H
- #define GUN_H
- #include "../Shot.h"
- #define GUN_DEGAT 1095
- #define GUN_SPEED 18
- class Gun : public Shot
- {
- public:
- Gun();
- Gun( Sint16 x, Sint16 y, bool ally = false );
- virtual ~Gun();
- virtual void update();
- virtual void draw( SDL_Surface* screen );
- virtual bool damageSolid( Uint8** solid, const Uint16 dimH, const Uint16 dimW, const SDL_Rect& hitbox );
- protected:
- int m_velocity;
- };
- #endif
|