Exemple #1
0
        public InGame()
        {
            InitializeComponent();

            b  = new bools();
            gi = new GameInformation();

            if (b.GSamIServer) //내가 서버일경우
            {
                pb  = LeftCharacter;
                pb2 = RightCharacter;
                pr  = leftHPBar;
                pr2 = rightHPBar;
                ll  = left_Level;
                ll2 = right_Level;
                labelClient.Visible         = true;
                ServerConnectButton.Visible = true;
                Player_WatchingLeft         = false;
            }
            else  //내가 클라이언트일 경우
            {
                pb2 = LeftCharacter;
                pb  = RightCharacter;
                pr2 = leftHPBar;
                pr  = rightHPBar;
                ll2 = left_Level;
                ll  = right_Level;
                labelServerIP.Visible       = true;
                ClientConnectButton.Visible = true;
                Player_WatchingLeft         = true;
            }

            if (gi.GSChampion == 1)
            {
                //궁수1
            }
            else if (gi.GSChampion == 2)
            {
                //궁수 2
            }
            else if (gi.GSChampion == 3)
            {
                //마법사 1
            }
            else if (gi.GSChampion == 4)
            {
                //마법사 2
            }
            else if (gi.GSChampion == 5)
            {
                //도적 1
                b1 = new Bandit1();
                c  = b1;
            }
            else if (gi.GSChampion == 6)
            {
                //도적 2
            }
        }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Lobby());

            bools b = new bools();

            if (b.GSigOn)
            {
                InGame ig = new InGame();
                Application.Run(ig);
                // test for github
            }
        }
Exemple #3
0
        private void Button2_Click(object sender, EventArgs e)
        {
            bools b = new bools();

            b.GSamIServer = false;
            b.GSigOn      = true;

            GameInformation gi = new GameInformation();

            if (radioButton1.Checked == true)
            {
                gi.GSChampion = 1;
            }
            else if (radioButton2.Checked == true)
            {
                gi.GSChampion = 2;
            }
            else if (radioButton3.Checked == true)
            {
                gi.GSChampion = 3;
            }
            else if (radioButton4.Checked == true)
            {
                gi.GSChampion = 4;
            }
            else if (radioButton5.Checked == true)
            {
                gi.GSChampion = 5;
            }
            else if (radioButton6.Checked == true)
            {
                gi.GSChampion = 6;
            }

            InGame dlg = new InGame();

            dlg.Show();
            this.Close();
        }