public override void PlayWholeMovie() { if (currentTime > 0 && InputUtil.GetInputBoolYesNo("The cassette is not set to play from the beginning. Rewind? (y/n)")) { Rewind(); } //play from current position to end of movie for (; currentTime < scenes.Count; currentTime++) { Console.WriteLine($"{scenes[currentTime]}"); } }
public override void Play() { if (InputUtil.GetInputBoolYesNo("Would you like to play the entire movie? (y/n)")) { this.PlayWholeMovie(); return; } try { Console.WriteLine($"\tplaying scene {currentTime}: {scenes[currentTime]}"); currentTime++; } catch { Console.WriteLine("\nYou've reached the final scene! Please be kind and rewind.\nWait! Modernly, we auto-rewind.\n"); Rewind(); } }
public override void Play() { if (InputUtil.GetInputBoolYesNo("Play entire movie? (y/n)")) { PlayWholeMovie(); return; } bool watchMoreScenes = true; PrintScenes(); while (watchMoreScenes) { int sceneIndex = InputUtil.ReadInteger( $"What scene of the DVD, {title}, would you like to watch? ", 1, scenes.Count); Console.WriteLine($"\tplaying scene {sceneIndex}: {scenes[sceneIndex - 1]}"); string[] watchMoreYes = { "y", "yes" }; string[] watchMoreNo = { "n", "no" }; watchMoreScenes = InputUtil.GetInputBool("Watch another scene?", watchMoreYes, watchMoreNo); } }