-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.h
45 lines (38 loc) · 1.68 KB
/
screen.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
45
/***************************************************************************\
|* *|
|* screen.h: A version of Tetris to run on ordinary terminals, *|
|* (ie., not needing a workstation, so should available *|
|* to peasant Newwords+ users. This module handles all *|
|* the icky curses(3x) bits. *|
|* *|
|* Author: Mike Taylor ([email protected]) *|
|* Started: Fri May 26 12:26:05 BST 1989 *|
|* *|
\***************************************************************************/
#define WALL_CHAR '|' /* Character used for sides of pay-area */
#define FLOOR_CHAR '=' /* Character used for base-line */
#define CORNER_CHAR '+' /* Character used bottom left and right */
#define BLANK_CHAR ' ' /* Character used elsewhere */
#define PD_DRAW 0 /* Code to draw piece */
#define PD_ERASE 1 /* Code to erase piece */
extern char ghost_as[3]; /* With which characters to draw the ghost
* piece (defined in screen.c) */
extern char erase_as[3]; /* With which characters to erase a piece
* (in screen.c) */
#define SCORE_WIDTH 7 /* How many digits for your score? */
#define NEXT_Y 9 /* Where to draw the "next" box */
#define NEXT_X 2*GAME_WIDTH+6
/*-------------------------------------------------------------------------*/
extern void myrefresh ();
extern void hoopy_refresh ();
extern void print_msg ();
extern void clear_area ();
extern void setup_screen ();
extern void setup_curses ();
extern void update_scores ();
extern void draw_board ();
extern void draw_piece_and_ghost();
extern void draw_piece ();
extern void place_piece ();
extern int can_place ();
/*-------------------------------------------------------------------------*/