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