コード例 #1
0
ファイル: Monster.cs プロジェクト: AbdoBoum/HarryPotterApi
 public override bool RecevoirDegats(Arme source)
 {
     this.PointsDeVie -= source.Degats;
     if (this.PointsDeVie <= 0)
     {
         return(false);
     }
     return(true);
 }
コード例 #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);
 }
コード例 #3
0
ファイル: Person.cs プロジェクト: AbdoBoum/HarryPotterApi
 public abstract bool RecevoirDegats(Arme source);