diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 15:01:38 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 15:01:38 +0100 |
commit | cd9b7052f07291e3975bad5dcfe9ad0338c17e74 (patch) | |
tree | 532e33fe82f6335ae63c51e461c1814363c711a6 /src/common.hpp | |
parent | e91ce36233474222e39ac2732100963fcb55574a (diff) |
Add tracers.
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common.hpp b/src/common.hpp index 6ce6c11..c946b80 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -186,6 +186,7 @@ namespace game { bool load_assets(void); class unit_t; + class effect_t; class roll_params_t { public: @@ -202,8 +203,9 @@ namespace game { std::unordered_set<unit_t*> selected_units; std::unordered_set<unit_t*> awake_units; - procgen::prng_t dice_prng; + std::unordered_set<effect_t*> effects; + procgen::prng_t dice_prng; public: world::world_t world; interface::state_t *interface; @@ -218,6 +220,8 @@ namespace game { void command(v2f_t x); size_t roll(roll_params_t *P); + + void add_effect(effect_t *effect); }; } @@ -320,7 +324,7 @@ namespace render { void render_text(v2f_t x, float height, std::string str, text_align_t align, sf::Color color); void render_rect(rectf_t rect, sf::Color color); void render_hlrect(rectf_t rect, sf::Color color); - void render_arrow(v2f_t x0, v2f_t x1, sf::Color color); + void render_line(v2f_t x0, v2f_t x1, sf::Color color); void debug_path(std::list<v2f_t> *path); }; |