home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume6 / sokoban / sokoban.h < prev    next >
C/C++ Source or Header  |  1989-01-03  |  3KB  |  99 lines

  1. /***********************************************************************
  2.    You may wish to alter the following directory paths
  3. ***********************************************************************/
  4. /**/
  5. /* SCREENPATH: the name of the directioy where the screen file are held */
  6. /**/
  7. #define SCREENPATH     "/usr/games/lib/sokoban/screens"
  8.  
  9. /**/
  10. /* HELPFILE: the full pathname of the helpfile */
  11. /**/
  12. #define HELPFILE    "/usr/games/lib/sokoban/sokoban.help"
  13.  
  14. /**/
  15. /* SAVEPATH: the name of the path where save files are held */
  16. /*           Attention: Be sure that there are no other files with */
  17. /*                      the name <username>.sav                    */
  18. /**/
  19. #define SAVEPATH    "/usr/games/lib/sokoban"
  20.  
  21. /**/
  22. /* LOCKPATH: temporary file which is created to ensure that no users */
  23. /*           work with the scorefile at the same time                */
  24. /**/
  25. #define LOCKFILE    "/tmp/sok.lock"
  26.  
  27. /**/
  28. /* SCOREFILE: the full pathname of the score file */
  29. /**/
  30. #define SCOREFILE    "/usr/games/lib/sokoban/sok.score"
  31.  
  32. /**/
  33. /* MAXUSERNAME: defines the maximum length of a system's user name */
  34. /**/
  35. #define MAXUSERNAME    10
  36.  
  37. /**/
  38. /* MAXSCOREENTRIES: defines the maximum numner of entries in the scoretable */
  39. /**/
  40. #define MAXSCOREENTRIES    50
  41.  
  42. /**/
  43. /* SUPERUSER: defines the name of the game superuser */
  44. /**/
  45. #define SUPERUSER "root"
  46.  
  47. /**/
  48. /* PASSWORD: defines the password necessary for creating a new score file */
  49. /**/
  50. #define PASSWORD "nabokos"
  51.  
  52. /*************************************************************************
  53. ********************** DO NOT CHANGE BELOW THIS LINE *********************
  54. *************************************************************************/
  55. #define C_PLAYER    '@'
  56. #define C_PLAYERSTORE   '+'
  57. #define C_WALL        '#'
  58. #define C_GROUND    ' '
  59. #define C_STORE        '.'
  60. #define C_PACKET    '$'
  61. #define C_SAVE        '*'
  62.  
  63. #define MAXROW        20
  64. #define MAXCOL        40
  65.  
  66. typedef struct {
  67.    short x, y;
  68. } POS;
  69.  
  70. char *malloc();
  71. FILE *fopen();
  72.  
  73. #define storepos( p, a, b)    p.x = a; p.y = b;
  74.  
  75. #define E_FOPENSCREEN    1
  76. #define E_PLAYPOS1    2
  77. #define E_ILLCHAR    3
  78. #define E_PLAYPOS2    4
  79. #define E_TOMUCHROWS    5
  80. #define E_TOMUCHCOLS    6
  81. #define E_ENDGAME    7
  82. #define E_FOPENHELP    8
  83. #define E_NOUSER    9
  84. #define E_FOPENSAVE    10
  85. #define E_WRITESAVE    11
  86. #define E_STATSAVE    12
  87. #define E_READSAVE    13
  88. #define E_ALTERSAVE    14
  89. #define E_SAVED        15
  90. #define E_TOMUCHSE    16
  91. #define E_FOPENSCORE    17
  92. #define E_READSCORE    18
  93. #define E_WRITESCORE    19
  94. #define E_USAGE        20
  95. #define E_ILLPASSWORD    21
  96. #define E_LEVELTOOHIGH    22
  97. #define E_NOSUPER    23
  98. #define E_NOSAVEFILE    24
  99.