diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-19 15:15:20 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-19 15:15:20 +0100 |
commit | a8de6cb5593e3d6347393eb4c144c9cc22a470d8 (patch) | |
tree | c92063014bb76356acd09a2231e81aa084c49266 /examples/shooter/player.h | |
parent | 6985227db75f6adfeba880926e6629bf17b00ee8 (diff) | |
download | YAGE-a8de6cb5593e3d6347393eb4c144c9cc22a470d8.tar.gz YAGE-a8de6cb5593e3d6347393eb4c144c9cc22a470d8.zip |
Moving resources and generalising examples
Diffstat (limited to 'examples/shooter/player.h')
-rw-r--r-- | examples/shooter/player.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/examples/shooter/player.h b/examples/shooter/player.h deleted file mode 100644 index 8b5121c5..00000000 --- a/examples/shooter/player.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef EXAMPLE_SHOOTER_PLAYER_H -#define EXAMPLE_SHOOTER_PLAYER_H - -#include <yage/yage.h> - -#include "direction.h" - -enum class Action { - IDLE, - MOVING, -}; - -class Player : public yage::Drawable -{ -public: - Player(const glm::vec4 &bound, const yage::Texture &texture); - - void setTexture(const yage::Texture &texture); - - void draw(yage::SpriteBatch &sp); - - void move(Direction direction); - void idle(); - void look(Direction direction); - - // simple getters - glm::vec4 position() const; -private: - glm::vec4 bound_; - yage::Texture texture_; - Direction direction_; - Action action_; - int speed_; -}; - -#endif |