From d8b164e4727c887979d4da6a4011a444749862fc Mon Sep 17 00:00:00 2001 From: Simponic Date: Thu, 13 Aug 2020 12:07:52 -0600 Subject: Better file structure, stuff is better in general --- include/bullet.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/bullet.h (limited to 'include/bullet.h') diff --git a/include/bullet.h b/include/bullet.h new file mode 100644 index 0000000..3392ee4 --- /dev/null +++ b/include/bullet.h @@ -0,0 +1,24 @@ +#ifndef bullet_h +#define bullet_h + +#define BULLET_SPEED 10 +#define BULLET_LIFE 40 + +#include "point.h" +#include "velocity.h" +#include "flyingObject.h" + +class Bullet : public FlyingObject +{ +private: + int framesAlive; + +public: + Bullet( const Point &point ); + int getFramesAlive() const { return framesAlive; }; + void fire( const Velocity &velocity , const float angle ); + void advance(); +}; + + +#endif /* bullet_h */ -- cgit v1.2.3-70-g09d2