Пример #1
0
 private void AddComputerEnemiesToScene(Computer comp)
 {
     for (int i = 0; i < comp.Enemies.Count; i++)
     {
         var ccbd = new ControlCharacterBattleDisplay(comp.Enemies[i]);
         Grid.SetColumn(ccbd, 2);
         Grid.SetRow(ccbd, i + 1);
         this.grdControlBattle.Children.Add(ccbd);
     }
 }
Пример #2
0
 private void AddPlayerAlliesToScene(Player play)
 {
     for (int i = 0; i < play.Allies.Count; i++)
     {
         var ccbd = new ControlCharacterBattleDisplay(play.Allies[i]);
         Grid.SetColumn(ccbd, 0);
         Grid.SetRow(ccbd, i + 1);
         this.grdControlBattle.Children.Add(ccbd);
     }
 }