private int calculateResistance(){
  double mean=Math.sqrt(getWidth() * getHeight());
  double normalized=1 - 1 / Math.max(1.0,mean);
  return Math.max(MIN_RESISTANCE,(int)(MAX_RESISTANCE * normalized));
}

private int calculateResistance ( ) { double mean = Math . sqrt ( getWidth ( ) * getHeight ( ) ) ; double normalized = 1 - 1 / Math . max ( 1.0 , mean ) ; return Math . max ( MIN_RESISTANCE , ( int ) ( MAX_RESISTANCE * normalized ) ) ; }
calculate walking resistance for the corpse .
