Exemplo n.º 1
0
        private void btnCurar_Click(object sender, EventArgs e)
        {
            bool CuraDefinida = false;

            if (txtManaGasta.Text != "")
            {
                CuraDefinida = true;
            }

            PersonagemTeste p = checarPersonagem(true);

            if (p != null)
            {
                if (CuraDefinida)
                {
                    lblLog.Text = p.Curar(Convert.ToInt32(txtManaGasta.Text)) + lblLog.Text;
                }
                else
                {
                    lblLog.Text = p.Curar() + lblLog.Text;
                }
            }
            AtualizarStatus();
        }
Exemplo n.º 2
0
 private void btnCurarAliado_Click(object sender, EventArgs e)
 {
     if (txtMana.Text == "")
     {
         lblLog.Text = "Especifique uma quantidade de mana\r\n" + lblLog.Text;
         return;
     }
     if (elfo != null && rdoElfo.Checked)
     {
         lblLog.Text = elfo.Curar(Convert.ToInt32(txtManaGasta.Text), anao) + lblLog.Text;
     }
     if (anao != null && rdoAnao.Checked)
     {
         lblLog.Text = anao.Curar(Convert.ToInt32(txtManaGasta.Text), elfo) + lblLog.Text;
     }
     AtualizarStatus();
 }