diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 14:18:16 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 14:18:16 +0200 |
commit | 84766a7d49d3c1e233e13191c86d4ada2bbe2ddc (patch) | |
tree | 57f733939a9fd9c0cb1c3157da37e90b2c08b547 /src/game/game.hpp | |
parent | 0bc4eaebc6cb4410c5dbf3d89ae02634cfe72e27 (diff) |
Refactor and improve the hivemind + better AI debugging.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 8d13b17..27fc69b 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -36,12 +36,13 @@ namespace game { }; enum { - CF_BACKGROUND = 1, - CF_SOLID = 2, - CF_BODY = 4, - CF_BODY_SMALL = 8, - CF_WATER = 16, - CF_DECOS = 32 + CF_SURFACE = 1, + CF_BACKGROUND = 2, + CF_SOLID = 4, + CF_BODY = 8, + CF_BODY_SMALL = 16, + CF_WATER = 32, + CF_DECOS = 64 }; enum { @@ -169,7 +170,6 @@ namespace game { class fx_aim_marker_t; unit_t *find_target(world::world_t *world, v2f_t x, float r, bool friendly); - void hivemind_attack(unit_t *source, bool have_target, v2f_t target); class unit_t : public entity_t { protected: @@ -403,6 +403,18 @@ namespace game { void render_to(render::state_t *render); }; + class fx_debug_hivemind_t : public effect_t { + v2f_t x, move_to; + float r; + bool do_move; + + public: + fx_debug_hivemind_t(game::state_t *game_, v2f_t x_, float r_, bool do_move_, v2f_t move_to_); + ~fx_debug_hivemind_t(void) {}; + + void render_to(render::state_t *render); + }; + typedef enum { DECO_STONE, DECO_STONE_CRACKED, |