예제 #1
0
파일: Form2.cs 프로젝트: Andreiiy/Soldier
        public Form2()
        {
            InitializeComponent();
            count = 0;
            x     = 140;
            y     = 450;
            h     = 220;
            w     = 50;

            tank = new Tank(-550, 500, 320, 400);

            soldier = new Soldier(30, 450, this.h, this.w,
                                  this.Scolbody, this.Scolarm, this.Scolleg, this.Scolhat, this.Scolboot);

            terorist = new Terorist(this.x + 1200, 450, this.h, this.w,
                                    this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);

            terorist0 = new Terorist(this.x + 1200, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist1 = new Terorist(this.x + 1250, 450, this.h + 20, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist2 = new Terorist(this.x + 1300, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist3 = new Terorist(this.x + 1350, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist4 = new Terorist(this.x + 1400, 450, this.h + 10, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
        }
예제 #2
0
파일: Form1.cs 프로젝트: Andreiiy/Soldier
 private void Form1_Load(object sender, EventArgs e)
 {
     count    = 0;
     x        = 440;
     y        = 150;
     h        = 440;
     w        = 100;
     terorist = new Terorist(x + 300, y, h, w, Color.Bisque, Color.Bisque, Color.Bisque, Color.Bisque, Color.Bisque);
     soldier  = new Soldier(x, y, h, w, Color.Bisque, Color.Bisque, Color.Bisque, Color.Bisque, Color.Bisque);
 }
예제 #3
0
파일: Form2.cs 프로젝트: Andreiiy/Soldier
        private void Form2_Load(object sender, EventArgs e)
        {
            count = 0;
            x     = 140;
            y     = 450;
            h     = 220;
            w     = 50;



            tank = new Tank(-550, 500, 320, 400);

            soldier = new Soldier(30, 450, this.h, this.w,
                                  this.Scolbody, this.Scolarm, this.Scolleg, this.Scolhat, this.Scolboot);

            terorist = new Terorist(this.x + 1200, 450, this.h, this.w,
                                    this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);

            terorist0 = new Terorist(this.x + 1200, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist1 = new Terorist(this.x + 1250, 450, this.h + 20, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist2 = new Terorist(this.x + 1300, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist3 = new Terorist(this.x + 1350, 450, this.h, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);
            terorist4 = new Terorist(this.x + 1400, 450, this.h + 10, this.w,
                                     this.Tcolbody, this.Tcolarm, this.Tcolleg, this.Tcolmasc, this.Tcolboot);

            listOfTerorist    = new Terorist[5];
            listOfTerorist[0] = terorist0;
            listOfTerorist[1] = terorist1;
            listOfTerorist[2] = terorist2;
            listOfTerorist[3] = terorist3;
            listOfTerorist[4] = terorist4;
        }