BSD 4_1c_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 13 Dec 1982 14:06:37 +0000 (06:06 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 13 Dec 1982 14:06:37 +0000 (06:06 -0800)
Work on file usr/src/games/snake/snake.h

Synthesized-from: CSRG/cd1/4.1c.2

usr/src/games/snake/snake.h [new file with mode: 0644]

diff --git a/usr/src/games/snake/snake.h b/usr/src/games/snake/snake.h
new file mode 100644 (file)
index 0000000..133c267
--- /dev/null
@@ -0,0 +1,41 @@
+# include <stdio.h>
+# include <assert.h>
+# include <sys/types.h>
+# include <sgtty.h>
+# include <signal.h>
+# include <math.h>
+
+#define ESC    '\033'
+
+struct tbuffer {
+       long t[4];
+} tbuffer;
+
+char   *CL, *UP, *DO, *ND, *BS,
+       *HO, *CM,
+       *TA, *LL,
+       *KL, *KR, *KU, *KD,
+       *TI, *TE, *KS, *KE;
+int    LINES, COLUMNS; /* physical screen size. */
+int    lcnt, ccnt;     /* user's idea of screen size */
+char   xBC, PC;
+int    AM, BW;
+char   tbuf[1024], tcapbuf[128];
+char   *tgetstr(), *tgoto();
+int    Klength;        /* length of KX strings */
+int    chunk;          /* amount of money given at a time */
+#ifdef debug
+#define        cashvalue       (loot-penalty)/25
+#else
+#define cashvalue      chunk*(loot-penalty)/25
+#endif
+
+struct point {
+       int col, line;
+};
+struct point cursor;
+struct sgttyb orig, new;
+#ifdef TIOCLGET
+struct ltchars olttyc, nlttyc;
+#endif
+struct point *point();