diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 12:02:48 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 12:02:48 +0100 |
commit | 15f4780dd94a06bec5616155c05810c731d2e4af (patch) | |
tree | 11c6917805582f603e36bc47e7fd14f95b713a2b /src/game/game.hpp | |
parent | efaa4c026b60d52705b163f6886567793ef94123 (diff) |
Add the alien.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index fa75da1..f45aecf 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -22,9 +22,12 @@ namespace game { render::oriented_sprite_4M2_t legs_idle, legs_walking; } human_assets_t; + typedef struct { + render::oriented_sprite_4M_t idle, walking; + } alien_assets_t; + extern human_assets_t human; - extern sf::Texture tile_dirt; - extern sf::Texture tile_wall; + extern alien_assets_t alien; void load(void); } @@ -59,9 +62,10 @@ namespace game { const wchar_t *say_text; double say_time = -INFINITY; + void render_to(render::state_t *render); void say(const wchar_t *wstr, double now); void place(world::world_t *world_, v2f_t x_); - void keep_moving(double now, double dt); + bool keep_moving(double now, double dt); bool start_moving(v2f_t dst_, double now); }; @@ -69,5 +73,12 @@ namespace game { public: human_t(); void render_to(render::state_t *render); + bool keep_moving(double now, double dt); + }; + + class alien_t : public unit_t { + public: + alien_t(); + void render_to(render::state_t *render); }; }; |