Ejemplo n.º 1
0
        public bool Patentamt_GoldPruefen()
        {
            Spieler s = ActivePlayer;

            foreach (Idee i in  GameContentDb.IdeenElemente)
            {
                i.PatentGeprueft = false;
            }

            if (!s.GenugGold(s.ZuZahlen))
            {
                s.ZuZahlen = 0;

                foreach (Spieler sp in Players)
                {
                    sp.ZuErhalten = 0;
                }

                return(false);
            }
            else
            {
                return(true);
            }
        }
Ejemplo n.º 2
0
 private void buttonBestimmt_Click(object sender, EventArgs e)
 {
     if (!s.GenugGold(2))
     {
         MessageBox.Show("Du hast nicht genug Gold, um eine Komponente zu kaufen.");
     }
     else
     {
         labelComm2.Text    = "Bitte wähle eine Komponente aus.";
         labelComm2.Visible = true;
         tableLayoutPanelKomponenten.Visible = true;
     }
 }
Ejemplo n.º 3
0
 private void buttonAnheuern_Click(object sender, EventArgs e)
 {
     if (!s.GenugGold(2))
     {
         MessageBox.Show("Du hast nicht genug Gold, um einen Diener anzuheuern.");
     }
     else if (!s.PlatzImFoyer())
     {
         MessageBox.Show("Dein Foyer kann nicht noch mehr Diener aufnehmen.");
     }
     else
     {
         panelDienerAuswahl.Visible = true;
     }
 }