|
|
1.1 root 1: /* snake.h 4.1 83/07/04 */
2:
3: # include <stdio.h>
4: # include <assert.h>
5: # include <sys/types.h>
6: # include <sgtty.h>
7: # include <signal.h>
8: # include <math.h>
9:
10: #define ESC '\033'
11:
12: struct tbuffer {
13: long t[4];
14: } tbuffer;
15:
16: char *CL, *UP, *DO, *ND, *BS,
17: *HO, *CM,
18: *TA, *LL,
19: *KL, *KR, *KU, *KD,
20: *TI, *TE, *KS, *KE;
21: int LINES, COLUMNS; /* physical screen size. */
22: int lcnt, ccnt; /* user's idea of screen size */
23: char xBC, PC;
24: int AM, BW;
25: char tbuf[1024], tcapbuf[128];
26: char *tgetstr(), *tgoto();
27: int Klength; /* length of KX strings */
28: int chunk; /* amount of money given at a time */
29: #ifdef debug
30: #define cashvalue (loot-penalty)/25
31: #else
32: #define cashvalue chunk*(loot-penalty)/25
33: #endif
34:
35: struct point {
36: int col, line;
37: };
38: struct point cursor;
39: struct sgttyb orig, new;
40: #ifdef TIOCLGET
41: struct ltchars olttyc, nlttyc;
42: #endif
43: struct point *point();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.