1 /***************************************************************************\
2 |*									   *|
3 |*  screen.h:	A version of Tetris to run on ordinary terminals,	   *|
4 |*		(ie., not needing a workstation, so should available	   *|
5 |*		to peasant Newwords+ users.  This module handles all	   *|
6 |*		the icky curses(3x) bits.				   *|
7 |*									   *|
8 |*  Author:	Mike Taylor (mirk@uk.co.ssl)				   *|
9 |*  Started:	Fri May 26 12:26:05 BST 1989				   *|
10 |*									   *|
11 \***************************************************************************/
12 
13 #define WALL_CHAR	'|'	/* Character used for sides of pay-area */
14 #define FLOOR_CHAR	'='	/* Character used for base-line */
15 #define CORNER_CHAR	'+'	/* Character used bottom left and right */
16 #define BLANK_CHAR	' '	/* Character used elsewhere */
17 
18 #define PD_DRAW		0	/* Code to draw piece */
19 #define PD_ERASE	1	/* Code to erase piece */
20 
21 extern char ghost_as[3];	/* With which characters to draw the ghost
22 				 * piece (defined in screen.c) */
23 extern char erase_as[3];	/* With which characters to erase a piece
24 				 * (in screen.c) */
25 
26 #define SCORE_WIDTH	7	/* How many digits for your score? */
27 #define NEXT_Y		9	/* Where to draw the "next" box */
28 #define NEXT_X		2*GAME_WIDTH+6
29 
30 /*-------------------------------------------------------------------------*/
31 
32 extern void myrefresh ();
33 extern void hoopy_refresh ();
34 extern void print_msg ();
35 extern void clear_area ();
36 extern void setup_screen ();
37 extern void setup_curses ();
38 extern void update_scores ();
39 extern void draw_board ();
40 extern void draw_piece_and_ghost();
41 extern void draw_piece ();
42 extern void place_piece ();
43 extern int can_place ();
44 
45 /*-------------------------------------------------------------------------*/
46