diff options
Diffstat (limited to 'examples/shooter/bullet.h')
-rw-r--r-- | examples/shooter/bullet.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/shooter/bullet.h b/examples/shooter/bullet.h new file mode 100644 index 00000000..19430fda --- /dev/null +++ b/examples/shooter/bullet.h @@ -0,0 +1,24 @@ +#ifndef EXAMPLES_SHOOTER_BULLET_H +#define EXAMPLES_SHOOTER_BULLET_H + +#include <yage/yage.h> + +#include "direction.h" + +class Bullet : public yage::Drawable +{ +public: + Bullet(const glm::vec4 &bound, Direction dir, float speed, float depth = 0.f); + + void draw(yage::SpriteBatch &sp); + + // getters + glm::vec4 position() const; +private: + glm::vec4 bound_; + Direction dir_; + float speed_; + float depth_; +}; + +#endif |