private void detailPreparingStep() { if (preparingIndex <= numStepsForPreparing) { float currAlpha = 1.0f - ((1.0f / numStepsForPreparing) * preparingIndex); System.out.println("Alpha=" + currAlpha); for (int i = 0; i < objectManager.worldObjects.size(); i++) { Object currObject = objectManager.worldObjects.elementAt(i); if (currObject instanceof Building && !currObject.equals(selectedBuilding)) { ((Building) (objectManager.worldObjects.elementAt(i))).setAlpha(currAlpha); } } preparingIndex++; } else { objectManager.makeBuildingsInvisible(selectedBuilding); preparingForTouring = false; preparingIndex = 0; readyPrepared(); } }