diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 20:19:01 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 20:22:32 +0100 |
commit | 7d0b6babe9906df0990028e41e0f895fab605498 (patch) | |
tree | e5fca214d7acfc1a1135b21bde54db4b5c813a6d /src/game/game.hpp | |
parent | a284014075b0abac2b65e3064eac152e8a62bc15 (diff) |
Better selection markers.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 456a8ea..7adc307 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -59,7 +59,8 @@ namespace game { extern nest_assets_t nest; extern fx_assets_t fx; extern deco_assets_t deco; - extern render::animated_texture_t unit_selected; + extern render::animated_texture_t unit_selected; + extern render::animated_texture_t unit_selected_halo; void load(void); } @@ -182,15 +183,15 @@ namespace game { double say_time = -INFINITY; void say(std::string str); - void render_to_pre(render::state_t *render); void render_to(render::state_t *render); - }; class unit_soldier_t : public unit_t { double last_target_time = -INFINITY; v2f_t last_target_x; + sf::Color selection_color; + double next_fear_test = -INFINITY; size_t willpower_bonus; size_t fear_dc; @@ -206,6 +207,7 @@ namespace game { unit_soldier_t(game::state_t *game_); ~unit_soldier_t(void) {}; void render_to(render::state_t *render); + void render_late_to(render::state_t *render); void on_think(void); void on_spawn(void) {}; @@ -218,6 +220,7 @@ namespace game { unit_spider_t(game::state_t *game_); ~unit_spider_t(void) {}; void render_to(render::state_t *render); + void render_late_to(render::state_t *render) {}; void target_and_attack(void); @@ -234,6 +237,7 @@ namespace game { unit_nest_t(game::state_t *game_); ~unit_nest_t(void) {}; void render_to(render::state_t *render); + void render_late_to(render::state_t *render) {}; void on_think(void); void on_spawn(void); @@ -251,6 +255,8 @@ namespace game { void on_think(void); void on_spawn(void) {}; void on_wake(void) {}; + + void render_late_to(render::state_t *render) {}; }; class fx_tracer_t : public effect_t { @@ -290,6 +296,7 @@ namespace game { deco_t(game::state_t *game, deco_type_t type_); void render_to(render::state_t *render); + void render_late_to(render::state_t *render) {}; void on_think(void) {}; void on_spawn(void) {}; |