public bool Verteidigen(Angriff a) { Hp = hp - a.Gegen(this.Art.Typ); if (Hp > 0) { return(true); } if (hp < 0) { hp = 0; } return(false); }
public Monster(Angriff angriff, Monsterart art) { Angriff = angriff; Art = art; Hp = art.Maxhp; }
public bool Verteidigen(Angriff a) { Hp = hp - a.Gegen(this.Art.Typ); if (Hp > 0) { return(true); } if (hp < 0) { hp = 0; } return(false); }
public Monster(Angriff angriff, Monsterart art) { Angriff = angriff; Art = art; Hp = art.Maxhp; }