diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-04 21:36:30 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-04 21:36:30 +0000 |
commit | 7b95e3a9eacf296f215c73e5d8ad9090a24adb20 (patch) | |
tree | 77125b5b30e08e48903e802ad4cdfddbb03074c1 /examples/shooter/bullet.h | |
parent | a47649786fb94684c415b230669fbf5343cb7c5d (diff) | |
download | YAGE-7b95e3a9eacf296f215c73e5d8ad9090a24adb20.tar.gz YAGE-7b95e3a9eacf296f215c73e5d8ad9090a24adb20.zip |
[Engine] Now using stb_image to laod all kinds of textures.
Diffstat (limited to 'examples/shooter/bullet.h')
-rw-r--r-- | examples/shooter/bullet.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/shooter/bullet.h b/examples/shooter/bullet.h index 1d372af1..19430fda 100644 --- a/examples/shooter/bullet.h +++ b/examples/shooter/bullet.h @@ -3,15 +3,22 @@ #include <yage/yage.h> +#include "direction.h" + class Bullet : public yage::Drawable { public: - Bullet(const glm::vec4 &bound); + Bullet(const glm::vec4 &bound, Direction dir, float speed, float depth = 0.f); - void draw(yage::SpriteBatch &sp) const; + void draw(yage::SpriteBatch &sp); + // getters + glm::vec4 position() const; private: glm::vec4 bound_; + Direction dir_; + float speed_; + float depth_; }; #endif |