Wesnoth: Generalize Micro AIs - Sheep, Big Animals and Lurkers
completed by: vitiv
mentors: Alarantalara, mattsc, Nils Kneuper
A number of Wesnoth AIs have recently been converted to Micro AIs, including the 'Sheep', 'Big Animals' and 'Lurkers' AIs. The behavior of these AIs is still too specialized for a general Micro AI. The goal of this task is therefore to make them more generally useful by adding parameters to the [micro_ai] tag.
Add the following free parameters to the 'Sheep' Micro AI: the units of the herding and herded animals (defined by Standard Unit Filters), the distance (radius) at which enemies are taken into account (there are two different radii that matter here), the herding area (this should be set up as a Standard Location Filter) as well as the terrain type of the path which the herders (dogs) try to stay on. Ideally, the latter will also be set up as a Standard Location Filter also.
Add the following free parameters to the 'Lurkers' Micro AI: replace the 'attack_terrain" and 'wander_terrain' types by Standard Location Filters.
Add the following free parameters to the 'Big Animals' Micro AI: 'avoid-type=' equivalently to how it is being used in the Wolves AI; as well as Standard Location Filters for the goal and wander terrain.
The task is completed when the AIs have been generalized as per the steps above and this has been documented on the Wesnoth wiki.
Documentation about Micro AIs in general and about the previous GCI Micro AI tasks are available on the Wesnoth wiki.