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