Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 4536 → Rev 4537

/branches/dd/uspace/app/tetris/tetris.h
55,19 → 55,20
* worrying about addressing problems.
*/
 
/* the board */
/* The board */
#define B_COLS 12
#define B_ROWS 23
#define B_SIZE (B_ROWS * B_COLS)
 
typedef unsigned char cell;
typedef uint32_t cell;
 
extern cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
 
/* the displayed area (rows) */
/* The displayed area (rows) */
#define D_FIRST 1
#define D_LAST 22
 
/* the active area (rows) */
/* The active area (rows) */
#define A_FIRST 1
#define A_LAST 21
 
77,7 → 78,9
#define MINROWS 23
#define MINCOLS 40
 
extern int Rows, Cols; /* current screen size */
/* Current screen size */
extern int Rows;
extern int Cols;
 
/*
* Translations from board coordinates to display coordinates.
131,6 → 134,7
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) */
uint32_t color;
};
 
extern const struct shape shapes[];
149,6 → 153,7
* but by then the game is utterly impossible.
*/
extern long fallrate; /* less than 1 million; smaller => faster */
 
#define faster() (fallrate -= fallrate / 3000)
 
/*
172,17 → 177,15
*/
#define PRE_PENALTY 0.75
 
extern int score; /* the obvious thing */
//extern gid_t gid, egid;
extern int score; /* The obvious thing */
 
extern char key_msg[100];
extern int showpreview;
extern int classic;
 
int fits_in(const struct shape *, int);
void place(const struct shape *, int, int);
void stop(char *);
extern int fits_in(const struct shape *, int);
extern void place(const struct shape *, int, int);
extern void stop(char *);
 
/** @}
*/