Example #1
0
 //METHODS
 public override void Play()
 {
     for (int i = 0; i < Scenes.Count; i++)
     {
         Console.WriteLine(Scenes[CurrentTime]);
         Thread.Sleep(4000);
         CurrentTime++;
         if (i < Scenes.Count - 1 && Blockbuster.AskYesOrNo("Keep watching?"))
         {
             continue;
         }
         else
         {
             break;
         }
     }
     if (Blockbuster.AskYesOrNo($"Would you like to watch {Title} again?"))
     {
         if (RunTime == 0)
         {
             Play();
         }
         else if (RunTime != 0)
         {
             if (Blockbuster.AskYesOrNo($"Would you like to rewind {Title} first?"))
             {
                 CurrentTime = 0;
             }
             else
             {
                 if (RunTime < Scenes.Count)
                 {
                     Play();
                 }
                 if (RunTime >= Scenes.Count + 1)
                 {
                     for (int i = 0; i <= 2; i++)
                     {
                         Console.WriteLine("CREDITS ROLL");
                         Thread.Sleep(3000);
                     }
                     Console.WriteLine("FBI WARNING");
                     Thread.Sleep(2000);
                     Console.Write("*ps");
                     for (int i = 0; i < 1000; i++)
                     {
                         Console.Write("h");
                         Thread.Sleep(25);
                     }
                     Console.Write("h*\n");
                     Thread.Sleep(2000);
                 }
             }
         }
     }
 }
Example #2
0
        public override void Play()
        {
            Console.WriteLine("\nWhat scene would you like to watch?\n");
            int i = 1;

            foreach (string scene in Scenes)
            {
                Console.WriteLine($"Scene {i}:\n{scene}\n");
                i++;
            }
            string regEx = "\\b[1-" + $"{Scenes.Count}" + "]\\b";

            //Console.WriteLine($"Scene number regular expression is \"{regEx}\".");
            if (Blockbuster.ValidationLoop("which scene you would like to watch", regEx, out int sceneNumber))
            {
                Console.WriteLine($"Scene {sceneNumber}:\n {Scenes[sceneNumber-1]}");
            }
            if (Blockbuster.AskYesOrNo($"\nWould you like to watch another scene from {Title}?"))
            {
                Play();
            }
        }