diff --git a/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java b/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java index d7fa5d8..acd01a3 100644 --- a/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java +++ b/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java @@ -83,7 +83,7 @@ public class AttackScenario { return this; } - public void resolveAttack() { + public AttackScenarioResolution resolveAttack() { var resolution = new AttackScenarioResolution(); // Filter out weapons that cannot participate in this attack var validWeapons = weapons.stream().filter( w -> hasLineOfSight || w._1.hasIndirectFire()) @@ -102,13 +102,16 @@ public class AttackScenario { // Defence funnel executeDefenceFunnel(weapon, normalWounds, mortalWounds); - } + + return resolution; } private void executeDefenceFunnel(Weapon weapon, double normalWounds, double mortalWounds) { + // Save normal wounds + // } /**