コード例 #1
0
        public FrmMain()
        {
            InitializeComponent();

            //instantiate two new objects of player and enemy

            //initialize the text boxes with info
            txtPlayerName.Text   = char1.getName();
            txtPlayerHealth.Text = char1.getHP().ToString();

            txtEnemyName.Text   = "Sewer Rat";
            txtEnemyHealth.Text = e1.getEnemyHealth().ToString();
        }