This is a rather quick and dirty 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 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 able to scout.
- If a target is could not be reached, skip that one in this and following iterations (until "order.Scout" is given again). How?