public void damage(double value){
  setValue(Math.max(0,getValue() - value));
}

public void damage ( double value ) { setValue ( Math . max ( 0 , getValue ( ) - value ) ) ; }
damage component by given value .
