/** * Sets the active camera instantly (use activateCamera if you want to * schedule that event) * * @param cameraName the camera name (as registered in * Cinematic#bindCamera()) */ public void setActiveCamera(String cameraName) { setEnableCurrentCam(false); currentCam = cameras.get(cameraName); if (currentCam == null) { logger.log(Level.WARNING, "{0} is not a camera bond to the cinematic, cannot activate", cameraName); } setEnableCurrentCam(true); }
/** * called internally */ @Override public void onStop() { time = 0; lastFetchedKeyFrame = -1; for (int i = 0; i < cinematicEvents.size(); i++) { CinematicEvent ce = cinematicEvents.get(i); ce.setTime(0); ce.forceStop(); } setEnableCurrentCam(false); }
/** * Sets the active camera instantly (use activateCamera if you want to * schedule that event) * * @param cameraName the camera name (as registered in * Cinematic#bindCamera()) */ public void setActiveCamera(String cameraName) { setEnableCurrentCam(false); currentCam = cameras.get(cameraName); if (currentCam == null) { logger.log(Level.WARNING, "{0} is not a camera bond to the cinematic, cannot activate", cameraName); } setEnableCurrentCam(true); }
/** * called internally */ @Override public void onStop() { time = 0; lastFetchedKeyFrame = -1; for (int i = 0; i < cinematicEvents.size(); i++) { CinematicEvent ce = cinematicEvents.get(i); ce.setTime(0); ce.forceStop(); } setEnableCurrentCam(false); }