Beispiel #1
0
 public void UpdateStacks(BattleArmy bArmy)
 {
     bArmy.ClearSummoned();
     unitsStacks.Clear();
     foreach (var item in bArmy.BattleUnitsStacks)
     {
         unitsStacks.Add(item);
     }
 }
Beispiel #2
0
 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);
 }