Exemple #1
0
        public void Oyun(oyunForm form)
        {
            bilgisayar = new Bilgisayar(0, 0, "Bilgisayar");
            kullanıcı  = new Kullanıcı(1, 0, "Kullanıcı");

            rand           = new Random();
            futbolcular    = new Futbolcu[8];
            basketbolcular = new Basketbolcu[8];
            int s = 90;

            futbolcular[0] = new Futbolcu("DROGBA", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[1] = new Futbolcu("METIN OKTAY", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[2] = new Futbolcu("RONALDINHO", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[3] = new Futbolcu("HENRY", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[4] = new Futbolcu("ZLATAN", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[5] = new Futbolcu("BECKENBAUER", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[6] = new Futbolcu("HAGI", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);
            futbolcular[7] = new Futbolcu("XAVI", "FUTBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(1650, 370), new Size(210, 300), false, form);

            basketbolcular[0] = new Basketbolcu("DAVIS", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[1] = new Basketbolcu("SHAQ", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[2] = new Basketbolcu("KOBE", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[3] = new Basketbolcu("CURRY", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[4] = new Basketbolcu("JORDAN", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[5] = new Basketbolcu("CEDI OSMAN", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[6] = new Basketbolcu("HARDEN", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);
            basketbolcular[7] = new Basketbolcu("LEBRON", "BASKETBOL", rand.Next(s, 100), rand.Next(s, 100), rand.Next(s, 100), new Point(50, 370), new Size(210, 300), false, form);

            oyunForm.lblKul.Text = "Kullanıcı skoru : " + kullanıcı.GetSkor();
            oyunForm.lblPc.Text  = "Bilgisayar skoru : " + bilgisayar.GetSkor();
        }
Exemple #2
0
 public void DesteyeFutbolcuEkle(Futbolcu Kart)//sporcu futbolcu ya da basketbolcu olabilir
 {
     Futbolcular.Add(Kart);
     base.kartListesi.Add(Kart);
 }
Exemple #3
0
 public void DesteyeFutbolcuEkle(Futbolcu Kart)
 {
     Kart.oyuncuKarti.MouseDoubleClick += DoubleClick;
     Futbolcular.Add(Kart);
     base.kartListesi.Add(Kart);
 }