From 61d16477b01bcfbe8c3a481a232658ac60309f57 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 27 Apr 2023 00:36:46 +0200 Subject: Extracted KeepAtRange action It seems an abstraction level is of some kind is needed here. One thing to handle "AI", another to handle primitive commands and their execution. --- sim/src/BaseSimulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/src/BaseSimulation.cpp') diff --git a/sim/src/BaseSimulation.cpp b/sim/src/BaseSimulation.cpp index b1add54..2731c67 100644 --- a/sim/src/BaseSimulation.cpp +++ b/sim/src/BaseSimulation.cpp @@ -24,7 +24,7 @@ void BaseSimulation::operator()(State& ctx) { pick_random_targets(ctx, manager); - keep_at_range(ctx); + take_actions(ctx); FloatingMovement::update(ctx); update_turrets(ctx); shoot_at_targets(ctx); -- cgit v1.1