// used by the larger boxes to check collisions protected Collision check_collisions_with_center(float new_x, float new_y) { Iterator<Box> it = BoxManager.instance().boxes().iterator(); while (it.hasNext()) { Box b = it.next(); if (b == this) continue; if (b.ignore_collisions()) continue; if (b.is_inside(new_x, new_y + get_height() / 2 + Settings.BOX_GAP)) { colliding_box_ = b; return Collision.YES; } else if (false && b.is_inside(new_x, (int) (new_y + get_height() / 2 + last_fall_speed_ * 2.0))) return Collision.ABOUT; } return Collision.NONE; }