Example #1
0
    int CalculateDamage(UnitScript Attacker, UnitScript Defender, bool badRangeShooting, out int hits)
    {
        DamageCalculator dc = new DamageCalculator();

        hits = dc.GetHits(Attacker, Defender, badRangeShooting);
        return(dc.CalculateAmountOfDamage(Attacker, Defender, badRangeShooting, hits));
    }