Exemplo n.º 1
0
 public void DefenseImmunity(int damage, Virus virus)
 {
     Immunity.Defence(damage, this, virus);
     Console.WriteLine(this.ToString(virus));
 }
Exemplo n.º 2
0
 public Chinese(int percentageOfImmunity = 70, bool isInFected = false, Virus virus = null, bool isDead = false)
 {
     Immunity = new Immunity(percentageOfImmunity, virus, isInFected);
     IsDead   = isDead;
 }