This is a try to let units explore automated. Feedback is appreciated.
The entity chooses a direction and heads to the first unexplored location, when arrived, it looks for a second one. Enemy territory is not chosen, but the unit will pass through it when trying to get to the other side.
There are still some cases in which this fails:
- When the position is unreachable (e.g. on the other side of a sea), the unit keeps picking that location to walk to it. So a check needs to be added if the position is reachable.
- Formations are not (yet) able to scout.
- If a target could not be reached, skip that one in this and following iterations (until "order.Scout" is given again). How?