Example #1
0
 /// <summary>
 /// Multiplies the speeds of specified parameters by a specified multiplier.
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <param name="multiplier">The speed multiplier.</param>
 /// <returns>The result parameters.</returns>
 public static UnitParameters MultiplySpeed(UnitParameters parameters, float multiplier)
 {
     return(new UnitParameters(
                parameters.Attack,
                parameters.Armor,
                parameters.HealPointsMax,
                parameters.Speed * multiplier,
                parameters.AttackSpeed * multiplier,
                parameters.AttackRange
                ));
 }