Esempio n. 1
0
 public void Fireball(Orc orc)
 {
     mana -= costF;
     orc.TakeDamage(fireball);
     Console.WriteLine("{0} used Fireball for {1} mana and did {2} damage to Orc.", name, costF, fireball);
 }
Esempio n. 2
0
 // Abilities
 public void Attack(Orc orc)
 {
     orc.TakeDamage(attack);
     Console.WriteLine("{0} used Attack and did {1} damage to Orc.", name, attack);
 }