示例#1
0
        public PictureBox BangKolobok(PictureBox pictureBox)
        {
            //Point coordKolobok = new Point();
            //coordKolobok
            KolobokView kolobokView = new KolobokView();

            return(kolobokView.GameOver(GetCoodinateKolobok(), pictureBox));
        }
示例#2
0
        private void timer1_Tick_1(object sender, EventArgs e)
        {
            tankController.checkAccidentTankToTank();
            if (tankController.checkAccidentTankToKolobok(packmanController.kolobok))
            {
                pictureBox1.Image = kolobokView.GameOver(coordinatesKolobok, pictureBox1).Image;
                timerForWorkProgram.Stop();
            }
            //
            pictureBox1.Image = bulletKolController.checkAccidentTankToBullet(listTanks, pictureBox1).Image;
            listBulletKolobok = bulletKolController.GetListKolobokBullet();
            //

            if (bulletTankController.checkAccidentBullToKolobok(packmanController.kolobok))
            {
                pictureBox1.Image = kolobokView.GameOver(coordinatesKolobok, pictureBox1).Image;
                timerForWorkProgram.Stop();
            }



            formReport.UpdateData(coordinatesKolobok, arrPointsApple, listTanks, listBulletKolobok, listBulletTank);
        }