home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume13 / xsokoban / part01 / sokoban.h < prev   
C/C++ Source or Header  |  1992-01-12  |  3KB  |  95 lines

  1. /***********************************************************************
  2.    You may wish to alter the following directory paths
  3. ***********************************************************************/
  4. #include <X11/Xlib.h>
  5. #include <X11/Xutil.h>
  6. /**/
  7. /* SCREENPATH: the name of the directioy where the screen file are held */
  8. /**/
  9. #define SCREENPATH     "/u/s7/staff/kevins/src/X/sokoban/screens"
  10.  
  11. /**/
  12. /* SAVEPATH: the name of the path where save files are held */
  13. /*           Attention: Be sure that there are no other files with */
  14. /*                      the name <username>.sav                    */
  15. /**/
  16. #define SAVEPATH    "/u/s7/staff/kevins/src/X/sokoban/"
  17.  
  18. /**/
  19. /* LOCKPATH: temporary file which is created to ensure that no users */
  20. /*           work with the scorefile at the same time                */
  21. /**/
  22. #define LOCKFILE    "/tmp/sok.lock"
  23.  
  24. /**/
  25. /* SCOREFILE: the full pathname of the score file */
  26. /**/
  27. #define SCOREFILE    "/u/s3/games/lib/sokoban/sok.score"
  28.  
  29. /**/
  30. /* MAXUSERNAME: defines the maximum length of a system's user name */
  31. /**/
  32. #define MAXUSERNAME    10
  33.  
  34. /**/
  35. /* MAXSCOREENTRIES: defines the maximum numner of entries in the scoretable */
  36. /**/
  37. #define MAXSCOREENTRIES    50
  38.  
  39. /**/
  40. /* SUPERUSER: defines the name of the game superuser */
  41. /**/
  42. #define SUPERUSER "kevins"
  43.  
  44. /**/
  45. /* PASSWORD: defines the password necessary for creating a new score file */
  46. /**/
  47. #define PASSWORD "nabokos"
  48.  
  49. /**/
  50. /* OBJECT: this typedef is used for internal and external representation */
  51. /*         of objects                                                    */
  52. /**/
  53. typedef struct {
  54.    char obj_intern;    /* internal representation of the object */
  55.    Pixmap obj_display;    /* display char for the object         */
  56.    short invers;    /* if set to 1 the object will be shown invers */
  57. } OBJECT;
  58.  
  59.  
  60. /*************************************************************************
  61. ********************** DO NOT CHANGE BELOW THIS LINE *********************
  62. *************************************************************************/
  63. #define MAXROW        20
  64. #define MAXCOL        40
  65. #define PIXMAPX    16
  66. #define PIXMAPY    16
  67.  
  68. typedef struct {
  69.    short x, y;
  70. } POS;
  71.  
  72. #define E_FOPENSCREEN    1
  73. #define E_PLAYPOS1    2
  74. #define E_ILLCHAR    3
  75. #define E_PLAYPOS2    4
  76. #define E_TOMUCHROWS    5
  77. #define E_TOMUCHCOLS    6
  78. #define E_ENDGAME    7
  79. #define E_NOUSER    9
  80. #define E_FOPENSAVE    10
  81. #define E_WRITESAVE    11
  82. #define E_STATSAVE    12
  83. #define E_READSAVE    13
  84. #define E_ALTERSAVE    14
  85. #define E_SAVED        15
  86. #define E_TOMUCHSE    16
  87. #define E_FOPENSCORE    17
  88. #define E_READSCORE    18
  89. #define E_WRITESCORE    19
  90. #define E_USAGE        20
  91. #define E_ILLPASSWORD    21
  92. #define E_LEVELTOOHIGH    22
  93. #define E_NOSUPER    23
  94. #define E_NOSAVEFILE    24
  95.