Exemplo n.º 1
0
 private void nextTurnButton_Click(object sender, EventArgs e)
 {
     engine.DoCombatRound();
     playerHPLabel.Text = "Player HP:\t" + engine.Player.HP.ToString();
     enemyHPLabel.Text  = "Enemy HP:\t" + engine.Enemy.HP.ToString();
     battleTextBox.Text = engine.output + "\n";
 }
Exemplo n.º 2
0
        private void nextTurnButton_Click(object sender, EventArgs e)
        {
            engine.DoCombatRound();
            playerHPLabel.Text = engine.Player.Name + "'s HP: " + engine.Player.HP.ToString();
            enemyHPLabel.Text  = engine.Enemy.Name + "'s HP: " + engine.Enemy.HP.ToString();
            battleTextBox.Text = engine.output + "\n";


            if (engine.ongoingBattle == false)
            {
                nextTurnButton.Enabled = false;
                nextTurnButton.Visible = false;
                resetButton.Enabled    = true;
                resetButton.Visible    = true;
            }
        }