summaryrefslogtreecommitdiff
path: root/sim/src/ai.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-05-04 00:07:51 +0200
committerAki <please@ignore.pl>2024-04-05 19:41:19 +0200
commit52b0bdaba5b38790d144bf1e800ea34be937ded0 (patch)
treec2215cb7848e421b9c96fcc5cf4beb83b3a75c97 /sim/src/ai.h
parent61d16477b01bcfbe8c3a481a232658ac60309f57 (diff)
downloadkurator-52b0bdaba5b38790d144bf1e800ea34be937ded0.zip
kurator-52b0bdaba5b38790d144bf1e800ea34be937ded0.tar.gz
kurator-52b0bdaba5b38790d144bf1e800ea34be937ded0.tar.bz2
Refactored Actions to be owned by registry
Registry is now also responsible for switching between the actions and each action is expected to have one system. Technically an std::variant could be used here, but let's wait a bit and see how this part evolves.
Diffstat (limited to 'sim/src/ai.h')
-rw-r--r--sim/src/ai.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/src/ai.h b/sim/src/ai.h
index d1e9c29..e306be1 100644
--- a/sim/src/ai.h
+++ b/sim/src/ai.h
@@ -12,8 +12,9 @@ namespace sim
{
+void setup_ai_components(State& ctx);
void pick_random_targets(State& ctx, TeamManager& manager);
-void take_actions(State& ctx);
+void keep_at_range(State& ctx);
void shoot_at_targets(State& ctx);