void MenuItem_Click(object sender, RoutedEventArgs e) { Base.Clubs = new List <Club>(); Base.Players = new List <Player>(); Base.Leagues = new List <League>(); Base.freeClub = new Club(); Base.freeLeague = new League(); string freeclubs; List <string> listClubs = new List <string>(); List <string> empthyLeagues = new List <string>(); Microsoft.Win32.OpenFileDialog fileDialog = new Microsoft.Win32.OpenFileDialog { Filter = string.Format("EFE|*{0}", "efe"), InitialDirectory = Directory.GetCurrentDirectory() + "\\Content" }; bool? result = fileDialog.ShowDialog(); string filename; if (result == true) { filename = fileDialog.FileName; using (Stream s = File.OpenRead(filename)) { using (var ds = new DeflateStream(s, CompressionMode.Decompress)) { using (TextReader r = new StreamReader(ds)) { string temp = ""; while (true) { temp = r.ReadLine(); if (temp == "<freeclubs>") { break; } listClubs.Add(temp); } temp = r.ReadLine(); freeclubs = temp; while (true) { temp = r.ReadLine(); if (temp == "end") { break; } empthyLeagues.Add(temp); } } } } foreach (var item in listClubs) { bool isHad = false; int pos = 0; Club tempC = (Club)JsonConvert.DeserializeObject(item, typeof(Club)); foreach (var node in Base.Clubs) { if (tempC.Name == node.Name) { isHad = true; pos = Base.Clubs.IndexOf(node); break; } } if (isHad) { if (Base.Clubs.Count != 0) { Base.Clubs.RemoveAt(pos); } } Base.Clubs.Add(tempC); } Base.freeClub = (Club)JsonConvert.DeserializeObject(freeclubs, typeof(Club)); foreach (var item in Base.Clubs) { if (item.Players != null) { bool isHad = false; int pos = 0; foreach (var node in item.Players) { foreach (var note in Base.Players) { if (note.Name == node.Name) { isHad = true; pos = Base.Players.IndexOf(note); break; } } if (isHad) { if (Base.Players.Count != 0) { Base.Players.RemoveAt(pos); } } node.Club = item; Base.Players.Add(node); } } if (item.League.Name != "Вне лиги") { bool isHad = false; int pos = 0; foreach (var note in Base.Leagues) { if (item.League.Name == note.Name) { isHad = true; pos = Base.Leagues.IndexOf(note); break; } } if (isHad) { Base.Leagues.RemoveAt(pos); } foreach (var i in Base.Clubs) { if (i.League.Name == item.League.Name) { item.League.Clubs.Add(i); } } Base.Leagues.Add(item.League); } else { item.League = Base.freeLeague; Base.freeLeague.Clubs.Add(item); } } if (Base.freeClub.Players != null) { bool isHad = false; int pos = 0; foreach (var item in Base.freeClub.Players) { foreach (var note in Base.Players) { if (note.Name == item.Name) { isHad = true; pos = Base.Players.IndexOf(note); break; } } if (isHad) { if (Base.Players.Count != 0) { Base.Players.RemoveAt(pos); } } item.Club = Base.freeClub; Base.Players.Add(item); } } foreach (var i in empthyLeagues) { bool isHad = false; int pos = 0; League tempFL = (League)JsonConvert.DeserializeObject(i, typeof(League)); foreach (var node in Base.Leagues) { if (tempFL.Name == node.Name) { isHad = true; pos = Base.Leagues.IndexOf(node); break; } } if (isHad) { if (Base.Leagues.Count != 0) { Base.Leagues.RemoveAt(pos); } } Base.Leagues.Add(tempFL); } } Update(sender, e); FilterChoice.Items.Clear(); FilterChoice.Items.Add("Фильтрация"); CheckBox tempcheckBox = new CheckBox() { Content = Base.freeClub.Name }; FilterChoice.Items.Add(tempcheckBox); foreach (var item in Base.Clubs) { CheckBox checkBox = new CheckBox() { Content = item.Name }; FilterChoice.Items.Add(checkBox); } FilterChoice.Items.Add("Упорядочить по возрастанию голов"); FilterChoice.Items.Add("Упорядочить по убыванию голов"); FilterChoice.Items.Add("Группировка по амплуа"); FilterChoice.Items.Add("Минимальное количество голов"); FilterChoice.Items.Add("Максимальное количество голов"); FilterChoice.SelectedIndex = 0; }
public WindowStadium(string menu, Club club) { this.club = club; this.menu = menu + " >> " + Text.stadium; }
private void AddClubButton_Click(object sender, RoutedEventArgs e) { bool error = false; foreach (var item in Base.Clubs) { if (item.Name == NameText.Text) { MessageBox.Show("Ошибка. Клуб с таким названием уже существует!\nВведите другое название!"); error = true; NameText.Clear(); } } if (string.IsNullOrWhiteSpace(NameText.Text) || string.IsNullOrEmpty(NameText.Text)) { MessageBox.Show("Некорректный ввод. Пустая строка названия клуба или введен пробел!"); error = true; NameText.Clear(); } if (string.IsNullOrEmpty(CoachText.Text) || string.IsNullOrWhiteSpace(CoachText.Text)) { MessageBox.Show("Некорректный ввод. Пустая строка тренера или введен пробел!"); error = true; CoachText.Clear(); } if (error) { return; } Club club = new Club(NameText.Text, CoachText.Text, null, null, LogoIm, LogoText.Text); if (AddLeBox.Text != "Вне лиги") { int index = 0; foreach (var item in Base.Leagues) { if (item.Name == AddLeBox.Text) { club.League = item; if (Base.Leagues[index].Clubs == null) { List <Club> list = new List <Club> { club }; Base.Leagues[index].Clubs = list; } else { Base.Leagues[index].Clubs.Add(club); } break; } index++; } if (index == Base.Leagues.Count) { MessageBox.Show("Такая лига не найдена. \nВыберите из списка сушествующих или Вне лиги, обозначающее что клуб не входит в лигу!"); AddLeText.Text = "Вне лиги"; AddLeBox.SelectedIndex = 0; return; } } else { club.League = Base.freeLeague; if (Base.freeLeague.Clubs == null) { List <Club> list = new List <Club> { club }; Base.freeLeague.Clubs = list; } else { Base.freeLeague.Clubs.Add(club); } } if (PlayerCmBox.SelectedIndex != 1) { var list = new List <Player>(); for (int i = 2, j = PlayerCmBox.Items.Count; i < j; i++) { CheckBox o = (CheckBox)PlayerCmBox.Items.GetItemAt(i); if (o.IsChecked == true) { foreach (var it in Base.Players) { if (it.Name == (string)o.Content) { it.Club = club; Base.freeClub.Players.Remove(it); list.Add(it); break; } } } } club.Players = list; Base.Clubs.Add(club); } else { Base.Clubs.Add(club); } MessageBox.Show(messageBoxText: "Клуб добавлен"); DialogResult = true; }
public WindowTransferList(string menu, Club club) { this.club = club; this.menu = menu + " >> " + Text.transferList; transferList = Games.instance.transferList; }
public Games(int Year, Club playerClub) { instance = this; this.playerClub = playerClub; if (playerClub != null) { isStarted = true; } if (playerClub == null) { isStarted = false; } year = Year; season = year + "/" + (year + 1); clubs = Data.instance.clubs; transferList = new List <Player>(); for (int i = 0; i < clubs.Length; i++) { clubs[i].manager.setForSale(); } List <Club> clubs1 = new List <Club>(16); List <Club> clubs2 = new List <Club>(16); for (int i = 0; i < clubs.Length; i++) { if (clubs[i].league == "1") { clubs1.Add(clubs[i]); } if (clubs[i].league == "2") { clubs2.Add(clubs[i]); } } europeanCup = new CupWithGroupStage("European Cup", clubs1.ToArray()); polishCup = new Cup(Text.polishCup, clubs1.ToArray()); polishLeague1 = new League(Text.polishLeague1, clubs1.ToArray()); polishLeague2 = new League(Text.polishLeague2, clubs2.ToArray()); if (isStarted) { for (int i = 0; i < polishLeague1.clubs.Length; i++) { if (playerClub == polishLeague1.clubs[i]) { playerLeague = polishLeague1; } } if (playerLeague == null) { playerLeague = polishLeague2; } checkPosition(); } else if (!isStarted) { playerLeague = polishLeague1; } }
public WindowTransfersSales(string menu, Club club) { this.club = club; this.menu = menu + " >> " + Text.sale; players = club.squad.players; }
public EditClubWindow(Club club) { InitializeComponent(); Loaded += EditClubWindow_Loaded; Club = club; }
public Page(Club club) { InitializeComponent(); DataContext = club; }
public void writeNumbers(int x0, int y0, Club druzyna) { int u = 0; //if (druzyna.tactics.posture == Tactics.postures[1]) u = -1; //if (druzyna.tactics.posture == Tactics.postures[3]) u = 1; Window.setColor(Position.goalkeeper); Console.SetCursorPosition(x0 + srodekPolokregu.X, y0 + srodekPolokregu.Y / 2); Console.Write("1"); if (druzyna.tactics.formation == Tactics.formations[0]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + (int)(dlugosc * 0.3)); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 7 / 10, y0 + (int)(dlugosc * 0.3)); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + (int)(dlugosc * 0.4)); Console.Write("4"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + (int)(dlugosc * 0.4)); Console.Write("5"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + (int)(dlugosc * 0.4)); Console.Write("6"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + (int)(dlugosc * 0.6)); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + (int)(dlugosc * 0.6)); Console.Write("8"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + (int)(dlugosc * 0.6)); Console.Write("9"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + (int)(dlugosc * 0.6)); Console.Write("10"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + (int)(dlugosc * 0.85)); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[1]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 7 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("4"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("5"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("6"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("9"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("10"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[2]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("4"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("5"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + dlugosc * 5 / 10 + u); Console.Write("6"); Console.SetCursorPosition(x0 + szerokosc * 7 / 10, y0 + dlugosc * 5 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("9"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("10"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[3]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("4"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("5"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("6"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("9"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("10"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[4]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("4"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("5"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("6"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("9"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("10"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[5]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 3 / 10 + u); Console.Write("4"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + dlugosc * 5 / 10 + u); Console.Write("5"); Console.SetCursorPosition(x0 + szerokosc * 7 / 10, y0 + dlugosc * 5 / 10 + u); Console.Write("6"); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("9"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 3 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("10"); Console.SetCursorPosition(x0 + szerokosc * 7 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } if (druzyna.tactics.formation == Tactics.formations[6]) { Window.setColor(Position.defender); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("2"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("3"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 4 / 10 + u); Console.Write("4"); Window.setColor(Position.midfielder); Console.SetCursorPosition(x0 + szerokosc * 1 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("5"); Console.SetCursorPosition(x0 + szerokosc * 4 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("6"); Console.SetCursorPosition(x0 + szerokosc * 6 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("7"); Console.SetCursorPosition(x0 + szerokosc * 9 / 10, y0 + dlugosc * 6 / 10 + u); Console.Write("8"); Window.setColor(Position.forward); Console.SetCursorPosition(x0 + szerokosc * 2 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("9"); Console.SetCursorPosition(x0 + szerokosc * 5 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("10"); Console.SetCursorPosition(x0 + szerokosc * 8 / 10, y0 + dlugosc * 8 / 10 + u); Console.Write("11"); } Console.ResetColor(); }
void fillComments() { if (attackingTeam == null) { attackingTeam = host; } if (defendingTeam == null) { defendingTeam = guest; } string skladGospodarz = host.fullName + ": " + host.squad.first11[0].surname + " - "; for (int i = 1; i < 11; i++) { if (i == host.tactics.defenders || i == host.tactics.defenders + host.tactics.midfielders) { skladGospodarz += host.squad.first11[i].surname + " - "; } else { skladGospodarz += host.squad.first11[i].surname + " "; } } string skladGosc = guest.fullName + ": " + guest.squad.first11[0].surname + " - "; for (int i = 1; i < 11; i++) { if (i == guest.tactics.defenders || i == guest.tactics.defenders + guest.tactics.midfielders) { skladGosc += guest.squad.first11[i].surname + " - "; } else { skladGosc += guest.squad.first11[i].surname + " "; } } squads = new List <string>(); squads.Add(skladGospodarz + "\n" + skladGosc); rozpoczecieMeczu = new List <string>(); rozpoczecieMeczu.Add("Sędzia rozpoczyna mecz."); rozpoczecieMeczu.Add(host.fullName + " rozpoczyna mecz."); rozpoczecieMeczu.Add("Zaczynamy 1. połowę."); rozpoczecieMeczu.Add("Sędzia zaczyna 1. połowę meczu."); rozpoczecie2Polowy = new List <string>(); rozpoczecie2Polowy.Add("Zaczynamy drugą połowę meczu."); rozpoczecie2Polowy.Add("Sędzia rozpoczyna drugą połowę meczu."); rozpoczecie2Polowy.Add("Rozpoczynamy drugie 45 minut meczu."); rozpoczecie2Polowy.Add(guest.fullName + " rozpoczyna 2. połowę meczu."); zakonczeniePolowy = new List <string>(); zakonczeniePolowy.Add("Koniec 1. połowy."); zakonczeniePolowy.Add("Wynik do przerwy " + result + "."); zakonczeniePolowy.Add("Sędzia kończy 1. połowę meczu."); zakonczeniePolowy.Add("Minęło 45 minut gry. Wynik " + result + "."); zakonczeniePolowy.Add("Po 45 minutach gry jest " + result + "."); zakonczenieMeczu = new List <string>(); zakonczenieMeczu.Add("Sędzia odgwizduje koniec meczu."); zakonczenieMeczu.Add("Koniec meczu. Wynik " + result + "."); zakonczenieMeczu.Add("Sędzia kończy spotkanie. Wynik " + result + "."); ballPossession = new List <string>(); ballPossession.Add("Posiadanie piłki " + ballPossessionHost + " - " + ballPossessionGuest + "."); ballPossession.Add("Gospodarz posiadał piłkę przez " + ballPossessionHost + "% czasu."); ballPossession.Add("Piłkarze gości posiadali piłkę przez " + ballPossessionGuest + "% czasu."); ballPossession.Add("Gospodarze posiadali piłkę przez " + ballPossessionHost + "% czasu, a goście przez " + ballPossessionGuest + "%."); gol = new List <string>(); gol.Add(attackingTeam.squad.players[nr].surname + " zachowuje zimną krew będąc sam na sam z bramkarzem. Gol dla drużyny " + attackingTeam.fullName + "."); gol.Add(attackingTeam.squad.players[nr].surname + " strzela gola. Gol dla drużyny " + attackingTeam.fullName + "."); gol.Add(attackingTeam.squad.players[nr].surname + " strzela w samo okienko bramki i nie daje żadnych szans bramkarzowi. Gol dla drużyny " + attackingTeam.fullName + "."); gol.Add("Przy tym strzale " + defendingTeam.squad.players[0].surname + " nie miał żadnych szans. " + attackingTeam.fullName + " strzela gola."); gol.Add(attackingTeam.squad.players[nr + 1].surname + " dośrodkowuje piłkę i " + attackingTeam.squad.players[nr].surname + " strzela gola głową. Gol dla drużyny " + attackingTeam.fullName + "."); gol.Add(attackingTeam.squad.players[nr].surname + " mija kilku obrońców... w tym bramkarza. Piękna bramka piłkarza " + attackingTeam.fullName + "."); gol.Add("Piękna kombinacyjna akcja piłkarzy " + attackingTeam.fullName + ". Gola strzela " + attackingTeam.squad.players[nr].surname + "."); gol.Add(attackingTeam.squad.players[nr + 1].surname + " zagrywa prostopadłą piłkę do kolegi z zespołu. " + attackingTeam.squad.players[nr].surname + " mija bramkarza i strzela do pustej bramki."); rzutKarny = new List <string>(); rzutKarny.Add("Sędzia dyktuje rzut karny dla " + attackingTeam.fullName + ".\n"); rzutKarny.Add("Piłkarz drużyny " + attackingTeam.fullName + " został sfaulowany w polu karny. Sędzie wskazuje na 11 metr.\n"); rzutKarny.Add(attackingTeam.squad.players[nr].surname + " został zfaulowany w polu karnym. Sędzia pokazuje na 11 metr.\n"); rzutKarny.Add("Piłkarz drużyny " + defendingTeam.fullName + " fauluje przeciwnika w polu karnym. Sędzie odgwizduje rzut karny.\n"); rzutKarnyGol = new List <string>(); rzutKarnyGol.Add(attackingTeam.squad.players[attackingTeam.tactics.setPieces].surname + " pewnie wykorzystuje jedenastkę."); rzutKarnyGol.Add(attackingTeam.squad.players[attackingTeam.tactics.setPieces].surname + " strzela technicznie w lewy róg bramki. Gol dla " + attackingTeam.fullName + "."); rzutKarnyGol.Add(attackingTeam.squad.players[attackingTeam.tactics.setPieces].surname + " uderza mocno pod poprzeczkę. " + defendingTeam.squad.players[0].surname + " był bez szans."); rzutKarnyNieGol = new List <string>(); rzutKarnyNieGol.Add(attackingTeam.squad.players[attackingTeam.tactics.setPieces].surname + " strzela w prawy dolny róg bramki. Jednak strzał był za słaby - bramkarz broni."); rzutKarnyNieGol.Add(attackingTeam.squad.players[attackingTeam.tactics.setPieces].surname + " nie trafia w bramkę. Piłka ląduje daleko w trybunach."); }
public Match(Club host, Club guest, TypeOfMatch type) : this(host, guest) { this.type = type; this.stadium = host.stadium; }
public WindowClubs(string menu, Club host) { this.host = host; this.menu = menu + " >> " + host.fullName; clubs = Data.instance.clubsLeague1; }