shotcaller/src/systems/simple_movement.rs now split into simple_destination.rs (which sets target to closest enemy) and movement_system.rs (which moves entity one step on AIPath if it has enough action points to do so).
minigene/src/systems/ai_movement.rs functionality moved into movement_system.rs
minigene/src/systems/ai_pathing.rs now checks if AIDestination has changed before running A*.
This PR didn't do anything with leader1_simple_movement.rs and leader2_simple_movement.rs because currently these two systems are commented out in main.rs. To re-enable them they will have to be rewritten by following the example code in simple_destination.rs.
PR that implements changes discussed in https://github.com/amethyst/shotcaller/issues/54
This has to be merged together with minigene PR: https://github.com/jojolepro/minigene/pull/3
Basic changes of this PR are:
shotcaller/src/systems/simple_movement.rs
now split intosimple_destination.rs
(which sets target to closest enemy) andmovement_system.rs
(which moves entity one step on AIPath if it has enough action points to do so).minigene/src/systems/ai_movement.rs
functionality moved intomovement_system.rs
minigene/src/systems/ai_pathing.rs
now checks if AIDestination has changed before running A*.This PR didn't do anything with
leader1_simple_movement.rs
andleader2_simple_movement.rs
because currently these two systems are commented out inmain.rs
. To re-enable them they will have to be rewritten by following the example code insimple_destination.rs
.