Beispiel #1
0
 private void PopulateBattleViewSquads(IEnumerable <BattleSquad> squads)
 {
     foreach (BattleSquad squad in squads)
     {
         Color color = squad.IsPlayerSquad ? Color.blue : Color.black;
         foreach (BattleSoldier soldier in squad.Soldiers)
         {
             Tuple <int, int> position = _grid.GetSoldierPosition(soldier.Soldier.Id);
             BattleView.AddSoldier(soldier.Soldier.Id,
                                   new Vector2(position.Item1, position.Item2), color);
         }
     }
 }