home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
filutl
/
be.arc
/
PUZZ.H
< prev
next >
Wrap
C/C++ Source or Header
|
1988-01-01
|
4KB
|
187 lines
#include <stdio.h>
#include <fcntl.h>
#include <sys\types.h>
#include <sys\stat.h>
#include <io.h>
#include <errno.h>
#include <stdlib.h>
/************************************************************************
* CONSTANTs definitions *
************************************************************************/
#define CLRBORDER1 10
#define CLRBORDER2 6
#define CLRZOOM 10
#define CLRBACKGROUND 0
#define CLRTEXT 5
#define CLRCURSOR 6
#define XFIELD 14
#define YFIELD 23
#define XTEXT XFIELD+330
#define YTEXT YFIELD+8
#define XHERO XFIELD+293
#define YHEROSTART YFIELD+100
#define YHEROEND YFIELD+44
/************************************************************************
* TYPE DEFINITIONS *
************************************************************************/
struct bem {
unsigned char image[16][16];
};
/************************************************************************
* GLOBAL variables *
************************************************************************/
#ifdef INMAIN
struct bem bems[34];
int insmode = 1;
unsigned char snapshot[16][16];
unsigned int palette[16] = { 0,20,36,52,38,54,18,10,27,9,13,47,37,39,7,63 };
int curbem = 0, lastbem = 0, bemx = 0, bemy = 0, curcolor = 15;
char source_name[65];
unsigned char colors[16][49] = {
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
1,1,1,1,1,1,1,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
2,2,2,2,2,2,2,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
3,3,3,3,3,3,3,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
4,4,4,4,4,4,4,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
5,5,5,5,5,5,5,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
6,6,6,6,6,6,6,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
7,7,7,7,7,7,7,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
8,8,8,8,8,8,8,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
9,9,9,9,9,9,9,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
10,10,10,10,10,10,10,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
11,11,11,11,11,11,11,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
12,12,12,12,12,12,12,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
13,13,13,13,13,13,13,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
14,14,14,14,14,14,14,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15,
15,15,15,15,15,15,15
};
#else
extern struct bem bems[32];
extern int insmode;
extern unsigned char snapshot[16][16];
extern unsigned int palette[16];
extern int curbem, lastbem, bemx, bemy, curcolor;
extern char source_name[65];
extern unsigned char colors[16][49];
#endif