DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T t

⟦a2853bcf3⟧ TextFile

    Length: 1261 (0x4ed)
    Types: TextFile
    Names: »tet.h.orig«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Tetrix/tet.h.orig« 

TextFile

#define NO_TYPE	0
#define NO_CHAR	' '
#define BRITE_CHAR '$'

/* type numbers 1-3, 4-7, 9-11 etc represent the white, red, blue etc */
/* pieces at different rotations */
#define G_TYPE	4		/* Green pieces */
#define G_CHAR	'G'
#define R_TYPE	8		/* Red pieces */
#define R_CHAR	'R'
#define T_TYPE  12		/* Tan pieces */
#define T_CHAR	'O'
#define W_TYPE	16		/* White pieces */
#define W_CHAR	'W'
#define V_TYPE	20		/* Violet pieces */
#define V_CHAR	'V'
#define B_TYPE	24		/* Blue pieces */
#define B_CHAR	'B'
#define Y_TYPE	28		/* Yellow pieces */
#define Y_CHAR	'Y'

#define MINX 15		/* defines corner screen position */
#define MINY 1

#define BOARD_WIDE 10
#define BOARD_HIGH 20

#define MAXX BOARD_WIDE+MINX
#define MAXY BOARD_HIGH+MINY

#define STARTROW 1		/* defines starting position of pieces */
#define STARTCOL 5

extern int Type, Row, Column, Pause, CurrentSpeed, FallingDown, Beep;
extern char Board[BOARD_WIDE][BOARD_HIGH];

/* Macros */
/* offset the character on screen by MINX and MINY */
#define PUTCH(x,y,z) {  mvaddch(y+MINY,x+MINX,z); Board[x][y]=z; }

/* test whether a square is empty and legal */
/*
#define IS_FREE(x,y)  (((y >= 0) && (y < BOARD_HIGH) && \
			(x >= 0) && (x < BOARD_WIDE)) && \
			(Board[x][y] == NO_CHAR))
*/
IS_FREE();