copy in from cvs; cvs2svn fucked up big time

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-12-19 19:12:08 +00:00
parent 351c8ca204
commit 51eabc017b
310 changed files with 7852 additions and 5005 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: tetris.h,v 1.3 1998/09/13 15:27:30 hubertf Exp $ */
/* $NetBSD: tetris.h,v 1.8 2000/01/01 10:15:17 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -60,7 +60,7 @@
#define B_SIZE (B_ROWS * B_COLS)
typedef unsigned char cell;
cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
extern cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
/* the displayed area (rows) */
#define D_FIRST 1
@@ -76,7 +76,7 @@ cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
#define MINROWS 23
#define MINCOLS 40
int Rows, Cols; /* current screen size */
extern int Rows, Cols; /* current screen size */
/*
* Translations from board coordinates to display coordinates.
@@ -131,9 +131,12 @@ struct shape {
int off[3]; /* offsets to other blots if center is at (0,0) */
};
extern struct shape shapes[];
extern const struct shape shapes[];
#define randshape() (&shapes[random() % 7])
extern const struct shape *curshape;
extern const struct shape *nextshape;
/*
* Shapes fall at a rate faster than once per second.
*
@@ -144,7 +147,7 @@ extern struct shape shapes[];
* The value eventually reaches a limit, and things stop going faster,
* but by then the game is utterly impossible.
*/
long fallrate; /* less than 1 million; smaller => faster */
extern long fallrate; /* less than 1 million; smaller => faster */
#define faster() (fallrate -= fallrate / 3000)
/*
@@ -164,11 +167,12 @@ long fallrate; /* less than 1 million; smaller => faster */
* we find that it is at rest and integrate it---until then, it can
* still be moved or rotated).
*/
int score; /* the obvious thing */
gid_t gid, egid;
extern int score; /* the obvious thing */
extern gid_t gid, egid;
char key_msg[100];
extern char key_msg[100];
extern int showpreview;
int fits_in __P((struct shape *, int));
void place __P((struct shape *, int, int));
void stop __P((char *)) __attribute__((__noreturn__));
int fits_in __P((const struct shape *, int));
void place __P((const struct shape *, int, int));
void stop __P((const char *)) __attribute__((__noreturn__));