diff options
author | Simponic <loganthebean222@gmail.com> | 2020-06-30 20:04:55 -0600 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-06-30 20:04:55 -0600 |
commit | 7a60ab9f178dd813c876fcf8e25c947f9a9a5e06 (patch) | |
tree | 31ec5147b0e6a01b85499cf06a701af750fb83f7 /bullet.h | |
download | asteroids-cs165-7a60ab9f178dd813c876fcf8e25c947f9a9a5e06.tar.gz asteroids-cs165-7a60ab9f178dd813c876fcf8e25c947f9a9a5e06.zip |
Updated indentation
Diffstat (limited to 'bullet.h')
-rw-r--r-- | bullet.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bullet.h b/bullet.h new file mode 100644 index 0000000..3392ee4 --- /dev/null +++ b/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 */ |