Example #1
0
        static void Main(string[] args)
        {
            string fileName = "C:\\Users\\candr\\Documents\\Projects\\VoiceNote Project\\rhyme.txt";
            //
            LineManager lm     = new LineManager(fileName);
            PlayLoop    action = new PlayLoop(lm);


            // Need to print instructions to console
            Console.WriteLine("Welcome to Read My Cue. This program will speak each line of a text file individually.\n");

            // Need command from user (use wasd for controls for now)
            Console.WriteLine("Commands: <Space> = next line; 'd' = prev line; 'f' = current line; 'q' = quit");
            //Console.WriteLine("Enter a command");
            action.getInput();

            Console.WriteLine("End of Program in Main");
            Console.ReadKey();
        }
 public override void execute(LineManager lm)
 {
     play(lm.goToEnd());
 }
Example #3
0
 public void execute(LineManager lm)
 {
     cmd.execute(lm);
 }
Example #4
0
 public abstract void execute(LineManager lm);
Example #5
0
 public PlayLoop(LineManager lm)
 {
     this.lm = lm;
 }
Example #6
0
 public override void execute(LineManager lm)
 {
     play(lm.getPrevLine());
 }
Example #7
0
 public override void execute(LineManager lm)
 {
     play(lm.goToBegin());
     //play(lm.getCurrLine());
 }