Extract a function (get_average_defense())
Add a constructor to battle_context_unit_stats.

To enable attack-prediction to work with unit-types instead of on-map units.
Make function better_combat in attack.xpp static.

This function doesn't use class members and
can be static so it can be called from outside.
First version of combat analysis. Work in progress