aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/player.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-03 13:57:51 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-03 13:57:51 +0000
commita47649786fb94684c415b230669fbf5343cb7c5d (patch)
treeb35c5921bf90ed7b091f1bc2f08f370436abe834 /examples/shooter/player.h
parent86e4aa6265ade205aba94494a7a31a83b5686387 (diff)
downloadYAGE-a47649786fb94684c415b230669fbf5343cb7c5d.tar.gz
YAGE-a47649786fb94684c415b230669fbf5343cb7c5d.zip
[Engine] [Example] Added simple bullets that don't move
Diffstat (limited to 'examples/shooter/player.h')
-rw-r--r--examples/shooter/player.h5
1 files changed, 4 insertions, 1 deletions
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_;