Exemplo n.º 1
0
 public void ortam_Controldegistir(oyuncu sırakimde, Label isimlabel,Label ustundeki_ulke, Panel panelX)
 {
     // this.Color = sırakimde.renk;
     
     this.oyuncu_ismi = sırakimde.ismioku();
     isimlabel.Text = this.oyuncu_ismi;
     panelX.BackColor = sırakimde.renkoku();
     ustundeki_ulke.ForeColor = sırakimde.renkoku();
 }
Exemplo n.º 2
0
        public void ortam_Controldegistir(oyuncu sırakimde, Label isimlabel, Label ustundeki_ulke, Panel panelX)
        {
            // this.Color = sırakimde.renk;

            this.oyuncu_ismi         = sırakimde.ismioku();
            isimlabel.Text           = this.oyuncu_ismi;
            panelX.BackColor         = sırakimde.renkoku();
            ustundeki_ulke.ForeColor = sırakimde.renkoku();
        }
Exemplo n.º 3
0
 public double askerdagitim_hesap(oyuncu ulke_sayisi)
 {
     if (ulke_sayisi.Ulke_sayisi > 3)
     {
         return Math.Ceiling(Convert.ToDouble(ulke_sayisi.Ulke_sayisi) / 3);
     }
     else
     {
         return 3;
     }
 }
Exemplo n.º 4
0
 public double askerdagitim_hesap(oyuncu ulke_sayisi)
 {
     if (ulke_sayisi.Ulke_sayisi > 3)
     {
         return(Math.Ceiling(Convert.ToDouble(ulke_sayisi.Ulke_sayisi) / 3));
     }
     else
     {
         return(3);
     }
 }
Exemplo n.º 5
0
 public void askerdagitim_2(ulke secilen_ulke, oyuncu oyunncu, Label label1, Label label2)
 {
     label2.Text = (int)askerdagitim_hesap(oyunncu) + " adet bonus askeri yerlestir..";
     if (tekrar2 == false)
     {
         oyunncu.bonus_asker = (int)askerdagitim_hesap(oyunncu);
         tekrar2             = true;
     }
     if (secilen_ulke.sahip == Durum.sırakimde)
     {
         oyunncu.bonus_asker--;
         label2.Text = oyunncu.bonus_asker + " bonus asker kaldı ...";
         secilen_ulke.asker_Adedi     += 1;
         secilen_ulke.asker_Label.Text = (int.Parse(secilen_ulke.asker_Label.Text) + 1).ToString();
         if (oyunncu.bonus_asker == 0)
         {
             tekrar2 = false;
             durum_degistir(Durum.durumlar, label1);
         }
     }
 }
Exemplo n.º 6
0
        public void askerdagitim_islem(ulke secilen_ulke, oyuncu oyunncu, Label label,Label secilen_ulkee, Panel panel,Label label1,Label label2)
        {
            label2.Text = 18 + " adet askeri yerlestir";
            if (tekrar == false)
            {
                
                indexx = 0;
                ne_kadar = 18;
                tekrar = true;
            }

            if (secilen_ulke.sahip == Durum.sırakimde)
            {
                indexx++;
                label2.Text = (19 - indexx).ToString();
                secilen_ulke.asker_Adedi += 1;
                secilen_ulke.asker_Label.Text = (int.Parse(secilen_ulke.asker_Label.Text) + 1).ToString();

               
                if (indexx > (int)ne_kadar)
                {
                    tut++;
                    if (tut == 1 )
                    {
                        tekrar = false;
                    }
                oyuncu_Degistir(profil.oyuncular);
                ortam_Controldegistir(Durum.sırakimde, label,secilen_ulkee, panel);
                    if (tut == 2)
                    {
                        durum_degistir(Durum.durumlar, label1);
                    }
                }
            }
            else
            {

            }
        }
Exemplo n.º 7
0
        public void askerdagitim_2(ulke secilen_ulke, oyuncu oyunncu,Label label1,Label label2)
        {
            label2.Text = (int)askerdagitim_hesap(oyunncu) + " adet bonus askeri yerlestir..";
            if (tekrar2 ==false)
            {
                oyunncu.bonus_asker = (int)askerdagitim_hesap(oyunncu);
                tekrar2 = true;
            }
            if (secilen_ulke.sahip == Durum.sırakimde)
            {
                oyunncu.bonus_asker--;
                label2.Text = oyunncu.bonus_asker + " bonus asker kaldı ...";
                secilen_ulke.asker_Adedi += 1;
                secilen_ulke.asker_Label.Text = (int.Parse(secilen_ulke.asker_Label.Text) + 1).ToString();
                if (oyunncu.bonus_asker == 0)
                {

                        tekrar2 = false; 
                        durum_degistir(Durum.durumlar, label1);
                    
                }
            }
        }
Exemplo n.º 8
0
        public void askerdagitim_islem(ulke secilen_ulke, oyuncu oyunncu, Label label, Label secilen_ulkee, Panel panel, Label label1, Label label2)
        {
            label2.Text = 18 + " adet askeri yerlestir";
            if (tekrar == false)
            {
                indexx   = 0;
                ne_kadar = 18;
                tekrar   = true;
            }

            if (secilen_ulke.sahip == Durum.sırakimde)
            {
                indexx++;
                label2.Text = (19 - indexx).ToString();
                secilen_ulke.asker_Adedi     += 1;
                secilen_ulke.asker_Label.Text = (int.Parse(secilen_ulke.asker_Label.Text) + 1).ToString();


                if (indexx > (int)ne_kadar)
                {
                    tut++;
                    if (tut == 1)
                    {
                        tekrar = false;
                    }
                    oyuncu_Degistir(profil.oyuncular);
                    ortam_Controldegistir(Durum.sırakimde, label, secilen_ulkee, panel);
                    if (tut == 2)
                    {
                        durum_degistir(Durum.durumlar, label1);
                    }
                }
            }
            else
            {
            }
        }
Exemplo n.º 9
0
 //Oyuncuya verilecek ekstra askerler için
 public static void asker_Ver(oyuncu oyunncu, int ne_kadar)
 {
     oyunncu.askrsayı_al(oyunncu.askrsayı_oku() + ne_kadar);
 }
Exemplo n.º 10
0
 //Oyuncuya verilecek ekstra askerler için
 public static void asker_Ver(oyuncu oyunncu,int ne_kadar)
 {
     oyunncu.askrsayı_al(oyunncu.askrsayı_oku() + ne_kadar);
 }
Exemplo n.º 11
0
 protected void toprak_Cikar(oyuncu oyunncu,int adet)
 {
   oyunncu.Ulke_sayisi=oyunncu.Ulke_sayisi - adet;
 }
Exemplo n.º 12
0
 protected void toprak_Ekle(oyuncu oyunncu,int adet)
 { 
     oyunncu.Ulke_sayisi=oyunncu.Ulke_sayisi+adet;  
 }
Exemplo n.º 13
0
        private void durum_renkdegistir(oyuncu sırakimde)
        {
            this.Color = sırakimde.renkoku();
            this.oyuncu_ismi = sırakimde.ismioku();

        }
Exemplo n.º 14
0
 //Ulkelerin rengi oyuncunun kazanma yada kaybetme durumuna bağlı olarak sürekli değişecek
 public void renk_Belirle(oyuncu isim)
 {
     this.Renk = isim.renkoku();
 }
Exemplo n.º 15
0
 //Ulkelerin rengi oyuncunun kazanma yada kaybetme durumuna bağlı olarak sürekli değişecek 
 public void renk_Belirle(oyuncu isim)
 { 
     this.Renk = isim.renkoku(); 
 }
Exemplo n.º 16
0
 protected void toprak_Cikar(oyuncu oyunncu, int adet)
 {
     oyunncu.Ulke_sayisi = oyunncu.Ulke_sayisi - adet;
 }
Exemplo n.º 17
0
 protected void toprak_Ekle(oyuncu oyunncu, int adet)
 {
     oyunncu.Ulke_sayisi = oyunncu.Ulke_sayisi + adet;
 }
Exemplo n.º 18
0
 private void durum_renkdegistir(oyuncu sırakimde)
 {
     this.Color       = sırakimde.renkoku();
     this.oyuncu_ismi = sırakimde.ismioku();
 }
Exemplo n.º 19
0
 //Ulkelerin sürekli değişim halinde olucak sahiplerini belirleyen metodumuz.
 void sahibi_belirle(oyuncu oyuncu_ismi)
 {
     this.sahip_Ismi = oyuncu_ismi.ismioku();
 }
Exemplo n.º 20
0
 //Ulkelerin sürekli değişim halinde olucak sahiplerini belirleyen metodumuz.
 void sahibi_belirle(oyuncu oyuncu_ismi) { 
     this.sahip_Ismi = oyuncu_ismi.ismioku();
 }