Exemple #1
0
        private void NastavitHrace()
        {
            if (BudeSeHratProtiPocitaci())
            {
                Souper = new PocitacovyHrac();

                Souper.NastavitAdresuSoupere(Hrac.VlastniAdresa);
                Hrac.NastavitAdresuSoupere(Souper.VlastniAdresa);

                VlaknoProAI = OddelitDoSamostatnehoVlakna(HratHru);
                VlaknoProAI.Start(Souper);
            }
            else
            {
                OznamitMistniAdresu();

                Hrac.NastavitAdresuSoupere(ZjistitAdresuSoupere());
            }
        }
Exemple #2
0
        private void NastavitHrace()
        {
            if (HrajeSeProtiAI())
            {
                Souper = new PocitacovyHrac();

                Hrac.NastavitAdresuSoupere(Souper.Prijimac.Address);
                Souper.NastavitAdresuSoupere(Hrac.Prijimac.Address);

                ((PocitacovyHrac)Souper).OddelitDoSamostatnehoVlakna();
            }
            else
            {
                OznamitMistniAdresu();
                Hrac.NastavitAdresuSoupere(ZjistitAdresuSoupere());
            }

            Hrac.RozmistitLode();
        }
Exemple #3
0
        private void NastavitHrace()
        {
            if (((TextoveRozhrani)Rozhrani).Menu.HraProtiPocitaci)
            {
                Souper = new PocitacovyHrac();

                Souper.NastavitAdresuSoupere(Hrac);
                Hrac.NastavitAdresuSoupere(Souper);


                Souper.NastavitAdresuSoupere(Hrac);
                Hrac.NastavitAdresuSoupere(Souper);


                VlaknoProAI = OddelitDoSamostatnehoVlakna(HratHru);
                VlaknoProAI.Start(Souper);
            }
            else
            {
                OznamitMistniAdresu();

                Hrac.NastavitAdresuSoupere(ZjistitAdresuLidskehoSoupere());
            }
        }