public Ability(string id, string name, int manaCost, int range, bool ignoreLineOfSight, AbilityEffect[] effects, AbilityAOE areaOfEffect, bool targetFriends = false, bool targetEnemies = true) { this.ID = id; this.Name = name; this.ManaCost = manaCost; this.range = range; this.ignoreLoS = ignoreLineOfSight; this.effects = effects; this.area = areaOfEffect; this.targetFriends = targetFriends; this.targetEnemies = targetEnemies; }
private static void AddAbility(string id, string name, int mana, int range, bool ignoreLineOfSight, AbilityEffect[] effects, AbilityAOE areaOfEffect) { abilities.Add(id, new Ability(id, name, mana, range, ignoreLineOfSight, effects, areaOfEffect)); }