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 >
C/C++ Source or Header  |  1988-01-01  |  4KB  |  187 lines

  1. #include    <stdio.h>
  2. #include    <fcntl.h>
  3. #include    <sys\types.h>
  4. #include    <sys\stat.h>
  5. #include    <io.h>
  6. #include    <errno.h>
  7. #include    <stdlib.h>
  8.  
  9. /************************************************************************
  10.  * CONSTANTs definitions                        *
  11.  ************************************************************************/
  12.  
  13. #define    CLRBORDER1    10
  14. #define    CLRBORDER2    6
  15. #define    CLRZOOM        10
  16. #define    CLRBACKGROUND    0
  17. #define    CLRTEXT        5
  18. #define    CLRCURSOR    6
  19. #define    XFIELD        14
  20. #define    YFIELD        23
  21. #define    XTEXT        XFIELD+330
  22. #define    YTEXT        YFIELD+8
  23. #define    XHERO        XFIELD+293
  24. #define    YHEROSTART    YFIELD+100
  25. #define    YHEROEND    YFIELD+44
  26.  
  27. /************************************************************************
  28.  * TYPE DEFINITIONS                            *
  29.  ************************************************************************/
  30.  
  31. struct    bem    {
  32.     unsigned char    image[16][16];
  33. };
  34.  
  35. /************************************************************************
  36.  * GLOBAL variables                            *
  37.  ************************************************************************/
  38.  
  39. #ifdef    INMAIN
  40.  
  41. struct    bem    bems[34];
  42. int        insmode = 1;
  43. unsigned char    snapshot[16][16];
  44. unsigned int    palette[16] = {    0,20,36,52,38,54,18,10,27,9,13,47,37,39,7,63 };
  45. int        curbem = 0, lastbem = 0, bemx = 0, bemy = 0, curcolor = 15;
  46. char        source_name[65];
  47. unsigned char    colors[16][49] = {
  48.             0,0,0,0,0,0,0,
  49.             0,0,0,0,0,0,0,
  50.             0,0,0,0,0,0,0,
  51.             0,0,0,0,0,0,0,
  52.             0,0,0,0,0,0,0,
  53.             0,0,0,0,0,0,0,
  54.             0,0,0,0,0,0,0,
  55.  
  56.             1,1,1,1,1,1,1,
  57.             1,1,1,1,1,1,1,
  58.             1,1,1,1,1,1,1,
  59.             1,1,1,1,1,1,1,
  60.             1,1,1,1,1,1,1,
  61.             1,1,1,1,1,1,1,
  62.             1,1,1,1,1,1,1,
  63.  
  64.             2,2,2,2,2,2,2,
  65.             2,2,2,2,2,2,2,
  66.             2,2,2,2,2,2,2,
  67.             2,2,2,2,2,2,2,
  68.             2,2,2,2,2,2,2,
  69.             2,2,2,2,2,2,2,
  70.             2,2,2,2,2,2,2,
  71.  
  72.             3,3,3,3,3,3,3,
  73.             3,3,3,3,3,3,3,
  74.             3,3,3,3,3,3,3,
  75.             3,3,3,3,3,3,3,
  76.             3,3,3,3,3,3,3,
  77.             3,3,3,3,3,3,3,
  78.             3,3,3,3,3,3,3,
  79.  
  80.             4,4,4,4,4,4,4,
  81.             4,4,4,4,4,4,4,
  82.             4,4,4,4,4,4,4,
  83.             4,4,4,4,4,4,4,
  84.             4,4,4,4,4,4,4,
  85.             4,4,4,4,4,4,4,
  86.             4,4,4,4,4,4,4,
  87.  
  88.             5,5,5,5,5,5,5,
  89.             5,5,5,5,5,5,5,
  90.             5,5,5,5,5,5,5,
  91.             5,5,5,5,5,5,5,
  92.             5,5,5,5,5,5,5,
  93.             5,5,5,5,5,5,5,
  94.             5,5,5,5,5,5,5,
  95.  
  96.             6,6,6,6,6,6,6,
  97.             6,6,6,6,6,6,6,
  98.             6,6,6,6,6,6,6,
  99.             6,6,6,6,6,6,6,
  100.             6,6,6,6,6,6,6,
  101.             6,6,6,6,6,6,6,
  102.             6,6,6,6,6,6,6,
  103.  
  104.             7,7,7,7,7,7,7,
  105.             7,7,7,7,7,7,7,
  106.             7,7,7,7,7,7,7,
  107.             7,7,7,7,7,7,7,
  108.             7,7,7,7,7,7,7,
  109.             7,7,7,7,7,7,7,
  110.             7,7,7,7,7,7,7,
  111.  
  112.             8,8,8,8,8,8,8,
  113.             8,8,8,8,8,8,8,
  114.             8,8,8,8,8,8,8,
  115.             8,8,8,8,8,8,8,
  116.             8,8,8,8,8,8,8,
  117.             8,8,8,8,8,8,8,
  118.             8,8,8,8,8,8,8,
  119.  
  120.             9,9,9,9,9,9,9,
  121.             9,9,9,9,9,9,9,
  122.             9,9,9,9,9,9,9,
  123.             9,9,9,9,9,9,9,
  124.             9,9,9,9,9,9,9,
  125.             9,9,9,9,9,9,9,
  126.             9,9,9,9,9,9,9,
  127.  
  128.             10,10,10,10,10,10,10,
  129.             10,10,10,10,10,10,10,
  130.             10,10,10,10,10,10,10,
  131.             10,10,10,10,10,10,10,
  132.             10,10,10,10,10,10,10,
  133.             10,10,10,10,10,10,10,
  134.             10,10,10,10,10,10,10,
  135.  
  136.             11,11,11,11,11,11,11,
  137.             11,11,11,11,11,11,11,
  138.             11,11,11,11,11,11,11,
  139.             11,11,11,11,11,11,11,
  140.             11,11,11,11,11,11,11,
  141.             11,11,11,11,11,11,11,
  142.             11,11,11,11,11,11,11,
  143.  
  144.             12,12,12,12,12,12,12,
  145.             12,12,12,12,12,12,12,
  146.             12,12,12,12,12,12,12,
  147.             12,12,12,12,12,12,12,
  148.             12,12,12,12,12,12,12,
  149.             12,12,12,12,12,12,12,
  150.             12,12,12,12,12,12,12,
  151.  
  152.             13,13,13,13,13,13,13,
  153.             13,13,13,13,13,13,13,
  154.             13,13,13,13,13,13,13,
  155.             13,13,13,13,13,13,13,
  156.             13,13,13,13,13,13,13,
  157.             13,13,13,13,13,13,13,
  158.             13,13,13,13,13,13,13,
  159.  
  160.             14,14,14,14,14,14,14,
  161.             14,14,14,14,14,14,14,
  162.             14,14,14,14,14,14,14,
  163.             14,14,14,14,14,14,14,
  164.             14,14,14,14,14,14,14,
  165.             14,14,14,14,14,14,14,
  166.             14,14,14,14,14,14,14,
  167.  
  168.             15,15,15,15,15,15,15,
  169.             15,15,15,15,15,15,15,
  170.             15,15,15,15,15,15,15,
  171.             15,15,15,15,15,15,15,
  172.             15,15,15,15,15,15,15,
  173.             15,15,15,15,15,15,15,
  174.             15,15,15,15,15,15,15
  175.         };
  176. #else
  177.  
  178. extern    struct    bem    bems[32];
  179. extern    int        insmode;
  180. extern    unsigned char    snapshot[16][16];
  181. extern    unsigned int    palette[16];
  182. extern    int        curbem, lastbem, bemx, bemy, curcolor;
  183. extern    char        source_name[65];
  184. extern    unsigned char    colors[16][49];
  185.  
  186. #endif
  187.