Exemple #1
0
        public GlavnaIgra(int brojig, Pocetna p1, String[] imi, int[] vlog)
        {
            InitializeComponent();
            igraci = new List<Player>();

            player = new SoundPlayer("winning.wav");
            loser = new SoundPlayer("losing.wav");
            timerIgrac = new Timer();
            timerIgrac.Interval = 500;
            timerIgrac.Tick += new EventHandler(timerIgrac_Tick);
            upotrebeniKarti = new usedCards();
            karti = new List<Karta>();
            generirajSpil();
            r = new Random();
            aktivenIgrac = null;
            iminja = imi;
            vlogo = vlog;
            brojac = 0;
            sekund = 0;
            minut = 0;
            casot=0;
            p = p1;
            brojigraci = brojig;
            textBox1.Enabled = false;
            timer1.Enabled = true;
            timer2.Enabled = true;
            GenerirajSlikiIgraci();
            popolniList();
            zapocniIgra();
        }
 public BrojNaIgraci(Pocetna p)
 {
     InitializeComponent();
     ig = new Igrac();
     pred = Point.Empty;
     iminja = new String[5];
     vlogovi = new int[5];
     p1 = p;
 }