From a47649786fb94684c415b230669fbf5343cb7c5d Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 3 Jan 2018 13:57:51 +0000 Subject: [Engine] [Example] Added simple bullets that don't move --- examples/shooter/player.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/shooter/player.h') diff --git a/examples/shooter/player.h b/examples/shooter/player.h index 72af7c34..b8042e71 100644 --- a/examples/shooter/player.h +++ b/examples/shooter/player.h @@ -15,7 +15,7 @@ enum class Action { MOVING, }; -class Player +class Player : public yage::Drawable { public: Player(const glm::vec4 &bound, const yage::Texture &texture); @@ -26,6 +26,9 @@ public: void move(Direction direction); void idle(); + + // simple getters + glm::vec4 position() const; private: glm::vec4 bound_; yage::Texture texture_; -- cgit