Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Atividade6Ex3
- {
- public class Cleiton : Guerreiro
- {
- public Cleiton()
- {
- vida = 740;
- defesa = 35;
- velocidade = 345;
- velocidade_ataque = 0.625f;
- forca = 65;
- energia = 0;
- }
- public override string AtaqueBasico()
- {
- bool acerto = false;
- string resultado;
- Random rnd = new Random();
- rnd.Next(1);
- switch (rnd.Next())
- {
- case 0:
- acerto = false;
- break;
- case 1:
- acerto = true;
- break;
- default:
- break;
- }
- if (acerto == true)
- {
- resultado = "Golpe acertado com sucesso.";
- }
- else { resultado = "O Golpe não foi acertado."; }
- return resultado;
- }
- public override string AtaqueHabilidade()
- {
- string urro = "GRRRRRRRRRRRRR!!!!";
- return urro;
- }
- public override void Correr()
- {
- Console.WriteLine("Velocidade aumentada em 10 pontos. \r\n" +
- "Velocide atual: {0}", velocidade + 10);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement