random wandering and static ai

This commit is contained in:
Llywelwyn 2023-08-15 20:39:13 +01:00
parent 084e5e6f7b
commit f2b58a3feb
3 changed files with 96 additions and 0 deletions

View file

@ -135,11 +135,13 @@ impl State {
let mut approach_ai = ai::ApproachAI {};
let mut flee_ai = ai::FleeAI {};
let mut chase_ai = ai::ChaseAI {};
let mut default_move_ai = ai::DefaultAI {};
adjacent_ai.run_now(&self.ecs);
visible_ai.run_now(&self.ecs);
approach_ai.run_now(&self.ecs);
flee_ai.run_now(&self.ecs);
chase_ai.run_now(&self.ecs);
default_move_ai.run_now(&self.ecs);
}
fn run_map_index(&mut self) {