예제 #1
0
 public Game(LoginPlayer lp)
 {
     Music.URL = @"Music.mp3";
     InitializeComponent();
     this.lp = lp;
     Player  = new Fighter(lp.NamePlayer, maxhp);
     Comp    = new Computer(maxhp);
     dataGridView1.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.AllCells;
     dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
 }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoginPlayer lp = new LoginPlayer();

            Application.Run(new FormEntry(lp));
            if (lp.ResEntry)
            {
                Application.Run(new Game(lp));
            }
        }
예제 #3
0
 public FormEntry(LoginPlayer lp)
 {
     InitializeComponent();
     this.lp     = lp;
     lp.ResEntry = false;
 }