public TitelVerleihForm() { InitializeComponent(); this.TransparencyKey = Color.White; lbl_ueberschrift.Font = Grafik.GetStandardFont(Grafik.GetSchriftgRiesig()); lbl_ueberschrift.Left = this.Width / 2 - lbl_ueberschrift.Width / 2; lbl_text.Left = this.Width / 2 - lbl_text.Width / 2; int verltitelid = SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetBekamTitelX(); string text = "Wir, " + SW.Dynamisch.GetSpWithID(SW.Dynamisch.GetReichWithID(1).GetRegent()).GetKompletterName() + ", verfügen hiermit, dass Ihr, " + SW.Dynamisch.GetSpWithID(SW.Dynamisch.GetAktiverSpieler()).GetName() + ", Euch fortan\n\n\"" + SW.Statisch.GetTitelX(verltitelid).GetName(SW.Dynamisch.GetSpWithID(SW.Dynamisch.GetAktiverSpieler()).GetMaennlich()) + "\"\n\nnennen dürft.\n\n" + SW.Dynamisch.GetSpWithID(SW.Dynamisch.GetReichWithID(1).GetRegent()).GetKompletterName(); lbl_text.Text = text; SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).SetTitel(verltitelid); C_Musik musik = new C_Musik(); musik.PlaySound(Properties.Resources.fanfare); }
public Optionen(ref C_Musik oC_MusikInstanz) { InitializeComponent(); btn_hauptmenue.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_Zurueck.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_laden.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_speichern.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_Sphinzu.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_SpHinaus.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_optionen.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); btn_hpt_beenden.BackgroundImage = new Bitmap(Conspiratio.Properties.Resources.SonstHolzbrett); hptm = 1; beenden = 2; sphinaus = 3; sphinzu = 4; foC_MusikInstanz = oC_MusikInstanz; }
public Handelszertifikat(int rohid) { InitializeComponent(); lbl_ueberschrift.Font = Grafik.GetStandardFont(Grafik.GetSchriftgRiesig()); string text = ""; if (rohid < 8) { // Entweder die Stadt in der der Spieler das Amt innehat if (SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetAmtID() != 0 && SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetAmtID() < SW.Statisch.GetMaxAmtStadtID()) { text = " der Rat der Stadt " + SW.Dynamisch.GetStadtwithID(SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetAmtGebiet()).GetGebietsName(); } // oder die Stadt, in der er eine Niederlassung besitzt else { for (int i = SW.Statisch.GetMinStadtID(); i < SW.Statisch.GetMaxStadtID(); i++) { if (SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetSpielerHatHausVonStadtAnArraystelle(i).GetHausID() != 0) { text = " der Rat der Stadt " + SW.Dynamisch.GetStadtwithID(i).GetGebietsName(); } } } } else if (rohid < 15) { for (int i = 1; i < SW.Statisch.GetMaxLandID(); i++) { int LandStaedte = SW.Dynamisch.GetLandWithID(i).GetAnzahlStaedte(); int hauscounter = 0; for (int j = 0; j < LandStaedte; j++) { if (SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetSpielerHatHausVonStadtAnArraystelle(SW.Dynamisch.GetLandWithID(i).GetStadtX(j)).GetHausID() != 0) { hauscounter++; } } if (hauscounter >= 2) { text = " der Rat des Landes " + SW.Dynamisch.GetLandWithID(i).GetGebietsName(); break; } } if (string.IsNullOrEmpty(text)) { text = " der Rat des Reichs " + SW.Dynamisch.GetReichWithID(1).GetGebietsName(); } } else { text = " der Rat des Reichs " + SW.Dynamisch.GetReichWithID(1).GetGebietsName(); } lbl_text.Text = "Aufgrund Eurer besonderen\nHandelserfolge wird Euch,\n" + SW.Dynamisch.GetHumWithID(SW.Dynamisch.GetAktiverSpieler()).GetName() + ",\n ab heute gestattet, auch mit\n" + SW.Dynamisch.GetRohstoffwithID(rohid).GetRohName() + " zu handeln.\n \n" + text; C_Musik musik = new C_Musik(); musik.PlaySound(Properties.Resources.fanfare); }