private void checkVibrabombs(Entity entity, Coords coords) {  if (!(entity instanceof Mech)) { return; }  int mass = (int) entity.getWeight();  Enumeration e = game.getVibrabombs().elements();  while (e.hasMoreElements()) { Minefield mf = (Minefield) e.nextElement();   if (mass <= mf.getSetting() - 10) { break; }  int effectiveDistance = (mass - mf.getSetting()) / 10; int actualDistance = coords.distance(mf.getCoords());  if (actualDistance <= effectiveDistance) { phaseReport.append("\n" + entity.getShortName() + " sets off a vibrabomb in hex " + mf.getCoords().getBoardNum() + ".\n"); explodeVibrabomb(mf); }  }
private void checkVibrabombs(Entity entity, Coords coords, boolean displaced) { checkVibrabombs(entity, coords, displaced, null, null);
	private void checkVibrabombs(Entity entity, Coords coords) {		// Only mechs can set off vibrabombs.		if (!(entity instanceof Mech)) {			return;		}		int mass = (int) entity.getWeight();				Enumeration e = game.getVibrabombs().elements();		while (e.hasMoreElements()) {					Minefield mf = (Minefield) e.nextElement();						// Mech weighing 10 tons or less can't set off the bomb			if (mass <= mf.getSetting() - 10) {				break;			} 						int effectiveDistance = (mass - mf.getSetting()) / 10;			int actualDistance = coords.distance(mf.getCoords());						if (actualDistance <= effectiveDistance) {				phaseReport.append("\n" + entity.getShortName() + " sets off a vibrabomb in hex " + mf.getCoords().getBoardNum() + ".\n");				explodeVibrabomb(mf);			}					}	}