home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume13 / xsokoban2 / part02 / sokoban.h < prev   
C/C++ Source or Header  |  1992-01-13  |  3KB  |  113 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 "/home/tmp/jt1o/xsokoban/screens"
  8.  
  9. /**/
  10. /* SAVEPATH: the name of the path where save files are held */
  11. /*           Attention: Be sure that there are no other files with */
  12. /*                      the name <username>.sav                    */
  13. /**/
  14. #define SAVEPATH "/home/tmp/jt1o/xsokoban/saves"
  15.  
  16. /* BITPATH: the full pathname to the bitmap file defaults. */
  17. #define BITPATH "/home/tmp/jt1o/xsokban/bitmaps"
  18.  
  19. /**/
  20. /* LOCKPATH: temporary file which is created to ensure that no users */
  21. /*           work with the scorefile at the same time                */
  22. /**/
  23. #define LOCKFILE "/tmp/score.slock"
  24.  
  25. /**/
  26. /* SCOREFILE: the full pathname of the score file */
  27. /**/
  28. #define SCOREFILE "/home/tmp/jt1o/xsokoban/sokoban.slock"
  29.  
  30. /**/
  31. /* MAXUSERNAME: defines the maximum length of a system's user name */
  32. /**/
  33. #define MAXUSERNAME    32
  34.  
  35. /**/
  36. /* MAXSCOREENTRIES: defines the maximum numner of entries in the scoretable */
  37. /**/
  38. #define MAXSCOREENTRIES    10000
  39.  
  40. /**/
  41. /* SUPERUSER: defines the name of the game superuser */
  42. /**/
  43. #define SUPERUSER "jt1o"
  44.  
  45. /**/
  46. /* PASSWORD: defines the password necessary for creating a new score file */
  47. /**/
  48. #define PASSWORD "gandalf"
  49.  
  50. #ifdef VICE
  51. extern int PlayerUID;
  52. #define getuid() PlayerUID
  53. #define geteuid() PlayerUID
  54. #endif
  55.  
  56. /**/
  57. /* OBJECT: this typedef is used for internal and external representation */
  58. /*         of objects                                                    */
  59. /**/
  60.  
  61. #define BUFSIZE 256
  62.  
  63. /**/
  64. /* Attention: Do not alter the following defines. */
  65. /* This would cause an error when reading the screenfiles */
  66. /**/
  67. #define   player    '@'
  68. #define   playerstore    '+'
  69. #define   store        '.'
  70. #define   packet    '$'
  71. #define   save        '*'
  72. #define   ground    ' '
  73. #define   wall        '#'
  74.  
  75. /*************************************************************************
  76. ********************** DO NOT CHANGE BELOW THIS LINE *********************
  77. *************************************************************************/
  78. #define MAXROW        20
  79. #define MAXCOL        20
  80.  
  81. typedef struct {
  82.    short x, y;
  83. } POS;
  84.  
  85. #define E_FOPENSCREEN    1
  86. #define E_PLAYPOS1    2
  87. #define E_ILLCHAR    3
  88. #define E_PLAYPOS2    4
  89. #define E_TOMUCHROWS    5
  90. #define E_TOMUCHCOLS    6
  91. #define E_ENDGAME    7
  92. #define E_NOUSER    9
  93. #define E_FOPENSAVE    10
  94. #define E_WRITESAVE    11
  95. #define E_STATSAVE    12
  96. #define E_READSAVE    13
  97. #define E_ALTERSAVE    14
  98. #define E_SAVED        15
  99. #define E_TOMUCHSE    16
  100. #define E_FOPENSCORE    17
  101. #define E_READSCORE    18
  102. #define E_WRITESCORE    19
  103. #define E_USAGE        20
  104. #define E_ILLPASSWORD    21
  105. #define E_LEVELTOOHIGH    22
  106. #define E_NOSUPER    23
  107. #define E_NOSAVEFILE    24
  108. #define E_NOBITMAP    25
  109. #define E_NODISPLAY    26
  110. #define E_NOFONT    27
  111. #define E_NOMEM        28
  112. #define E_NOCOLOR    29
  113.