summaryrefslogtreecommitdiff
path: root/games/tetris/tetris.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-26 20:19:23 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-26 20:19:23 +0000
commit5a61fdd6c9ff9872e4e0c3a1c449a08935034729 (patch)
treecc9ccd5a653a952a7c156c098bd59ce29ab53ad7 /games/tetris/tetris.h
parent14be15feb70887ab60a3599332eae67d4c35fead (diff)
add classic mode, closer to the way tetris felt a couple decades ago; pjanzen@ ok
Diffstat (limited to 'games/tetris/tetris.h')
-rw-r--r--games/tetris/tetris.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/tetris/tetris.h b/games/tetris/tetris.h
index e27f38602df..5502d289246 100644
--- a/games/tetris/tetris.h
+++ b/games/tetris/tetris.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tetris.h,v 1.6 2002/02/16 21:27:12 millert Exp $ */
+/* $OpenBSD: tetris.h,v 1.7 2002/07/26 20:19:22 mickey Exp $ */
/* $NetBSD: tetris.h,v 1.2 1995/04/22 07:42:48 cgd Exp $ */
/*-
@@ -127,6 +127,7 @@ extern int Rows, Cols; /* current screen size */
*/
struct shape {
int rot; /* index of rotated version of this shape */
+ int rotc; /* -- " -- in classic version */
int off[3]; /* offsets to other blots if center is at (0,0) */
};
@@ -174,6 +175,7 @@ extern gid_t gid, egid;
extern char key_msg[100];
extern int showpreview;
+extern int classic;
int fits_in(struct shape *, int);
void place(struct shape *, int, int);