123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef PHOTO_H
- #define PHOTO_H
- #include "../Shot.h"
- #define PHOTO_DEGAT 42
- #define PHOTO_SPEED 22
- class Photo : public Shot
- {
- public:
- Photo();
- Photo( Sint16 xMe, Sint16 yMe, bool ally = false );
- Photo( Sint16 xMe, Sint16 yMe, Sint16 xHim, Sint16 yHim, bool ally = false );
- virtual ~Photo();
- 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:
- Sint16 m_vx;
- Sint16 m_vy;
- };
- #endif
|