if ( isInSameBuilding(game, attacker, target) ) { int aElev = attacker.getElevation(); int tElev = target.getElevation(); distance += Math.abs(aElev - tElev);
if ( isInSameBuilding(game, attacker, target) ) { int aElev = attacker.getElevation(); int tElev = target.getElevation(); distance += Math.abs(aElev - tElev); }  return distance;
  public static int effectiveDistance(Game game, Entity attacker, Targetable target) {    int distance = attacker.getPosition().distance(target.getPosition());    // If the attack is completely inside a building, add the difference    // in elevations between the attacker and target to the range.    // TODO: should the player be explcitly notified?    if ( isInSameBuilding(game, attacker, target) ) {      int aElev = attacker.getElevation();      int tElev = target.getElevation();      distance += Math.abs(aElev - tElev);    }    return distance;  }