aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/bullet.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shooter/bullet.h')
-rw-r--r--examples/shooter/bullet.h11
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