public void UpdateStacks(BattleArmy bArmy) { bArmy.ClearSummoned(); unitsStacks.Clear(); foreach (var item in bArmy.BattleUnitsStacks) { unitsStacks.Add(item); } }
public void Initialize(Army armyA, Army armyB) { left = armyA; right = armyB; leftArmy = new BattleArmy(armyA); rightArmy = new BattleArmy(armyB); foreach (var item in leftArmy.BattleUnitsStacks) { item.Side = leftArmy; } foreach (var item in rightArmy.BattleUnitsStacks) { item.Side = rightArmy; } iqueue = new InitiativeQueue(this); }