public void selectAll(int x0, int y0, int x1, int y1) {
		x0 += xScroll;
		y0 += yScroll;
		x1 += xScroll;
		y1 += yScroll;
		
		if (x0 > x1) {
			int tmp = x0;
			x0 = x1;
			x1 = tmp;
		}
		if (y0 > y1) {
			int tmp = y0;
			y0 = y1;
			y1 = tmp;
		}

		int r = 8;

		player.selected.clear();

		for (Unit u : game.level.getUnitScreenSpace(x0 - r, y0 - r, x1 + r, y1 + r)) {
			if (u.team == player.team) {
				if (u instanceof Mob)
				player.selected.add((Mob)u);
			}
		}
	}