print.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef PRINT_H
  2. #define PRINT_H
  3. /// Print characters onto the screen (not player input).
  4. /// @param arr string to print
  5. /// @param line line on which to print the string
  6. ///
  7. void slowPrint(char arr[], int line);
  8. /// Print characters onto the screen (player input).
  9. /// @param arr string to print
  10. /// @param line line on which to print the string
  11. ///
  12. void slowType(char arr[], int line);
  13. /// Operates the same way as slowPrint, but cannot be interrupted
  14. /// by a key press.
  15. /// @param arr string to print
  16. /// @param line line on which to print the string
  17. ///
  18. void passPrint(char arr[], int line);
  19. /// Checks if a key has been pressed. Used to skip the opening sequence and
  20. /// jump straight to pass().
  21. ///
  22. int kbhit();
  23. /// Used by pass() to print the left side of the screen. First prints
  24. /// a hexidecimal representation of an int, then the section of the
  25. /// string containing words and garbage.
  26. /// @param hex number to be displayed in hexidecimal
  27. /// @param arr string to be printed
  28. /// @param line line on which to print the string
  29. /// @param offset used to determine which side of the screen to print on
  30. ///
  31. void printChoices(int hex, char arr[], int line, int offset);
  32. #endif // PRINT_H
  33. // end