Example #1
0
 public override bool RecevoirDegats(Arme source)
 {
     this.PointsDeVie -= source.Degats;
     if (this.PointsDeVie <= 0)
     {
         return(false);
     }
     return(true);
 }
Example #2
0
 public override bool RecevoirDegats(Arme source)
 {
     Console.WriteLine("Je suis attaquƩ. J'ai pris " + source.Degats);
     this.PointsDeVie -= source.Degats;
     if (this.PointsDeVie <= 0)
     {
         return(false);
     }
     return(true);
 }
Example #3
0
 public abstract bool RecevoirDegats(Arme source);