From 52b0bdaba5b38790d144bf1e800ea34be937ded0 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 4 May 2023 00:07:51 +0200 Subject: 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. --- sim/src/ai.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/src/ai.h') 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); -- cgit v1.1