summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp8
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);
};