home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OP2DEV.ZIP / ADVENT.H < prev    next >
Text File  |  1984-05-18  |  3KB  |  141 lines

  1. /*    header ADVENT.H                        *\
  2. \*    WARNING: HEADER file for all adventure modules        */
  3.  
  4.  
  5. #define    MAXOBJ    100        /* max # of objects in cave    */
  6. #define    MAXWC    301        /* max # of adventure words    */
  7. #define    MAXLOC    140        /* max # of cave locations    */
  8. #define    WORDSIZE    20    /* max # of chars in commands    */
  9. #define    MAXMSG    201        /* max # of long location descr    */
  10.  
  11. #define    MAXTRAV    (16+1)    /* max # of travel directions from loc    */
  12.             /* +1 for terminator travel[x].tdest=-1    */
  13. #define    DWARFMAX    7    /* max # of nasty dwarves    */
  14. #define    MAXDIE    3        /* max # of deaths before close    */
  15. #define    MAXTRS    79        /* max # of            */
  16.  
  17. /*
  18.     Object definitions
  19. */
  20. #define    KEYS    1
  21. #define    LAMP    2
  22. #define    GRATE    3
  23. #define    CAGE    4
  24. #define    ROD    5
  25. #define    ROD2    6
  26. #define    STEPS    7
  27. #define    BIRD    8
  28. #define    DOOR    9
  29. #define    PILLOW    10
  30. #define    SNAKE    11
  31. #define    FISSURE    12
  32. #define    TABLET    13
  33. #define    CLAM    14
  34. #define    OYSTER    15
  35. #define    MAGAZINE    16
  36. #define    DWARF    17
  37. #define    KNIFE    18
  38. #define    FOOD    19
  39. #define    BOTTLE    20
  40. #define    WATER    21
  41. #define    OIL    22
  42. #define    MIRROR    23
  43. #define    PLANT    24
  44. #define    PLANT2    25
  45. #define    AXE    28
  46. #define    DRAGON    31
  47. #define    CHASM    32
  48. #define    TROLL    33
  49. #define    TROLL2    34
  50. #define    BEAR    35
  51. #define    MESSAGE    36
  52. #define    VEND    38
  53. #define    BATTERIES    39
  54. #define    NUGGET    50
  55. #define    COINS    54
  56. #define    CHEST    55
  57. #define    EGGS    56
  58. #define    TRIDENT    57
  59. #define    VASE    58
  60. #define    EMERALD    59
  61. #define    PYRAMID    60
  62. #define    PEARL    61
  63. #define    RUG    62
  64. #define    SPICES    63
  65. #define    CHAIN    64
  66.  
  67. /*
  68.     Verb definitions
  69. */
  70. #define    NULLX    21
  71. #define    BACK    8
  72. #define    LOOK    57
  73. #define    CAVE    67
  74. #define    ENTRANCE    64
  75. #define    DEPRESSION    63
  76.  
  77. /*
  78.     Action verb definitions
  79. */
  80. #define    TAKE    1
  81. #define    DROP    2
  82. #define    SAY    3
  83. #define    OPEN    4
  84. #define    NOTHING    5
  85. #define    LOCK    6
  86. #define    ON    7
  87. #define    OFF    8
  88. #define    WAVE    9
  89. #define    CALM    10
  90. #define    WALK    11
  91. #define    KILL    12
  92. #define    POUR    13
  93. #define    EAT    14
  94. #define    DRINK    15
  95. #define    RUB    16
  96. #define    THROW    17
  97. #define    QUIT    18
  98. #define    FIND    19
  99. #define    INVENTORY    20
  100. #define    FEED    21
  101. #define    FILL    22
  102. #define    BLAST    23
  103. #define    SCORE    24
  104. #define    FOO    25
  105. #define    BRIEF    26
  106. #define    READ    27
  107. #define    BREAK    28
  108. #define    WAKE    29
  109. #define    SUSPEND    30
  110. #define    HOURS    31
  111. #define    LOG    32
  112.  
  113. /*
  114.     BIT mapping of "cond" array which indicates location status
  115. */
  116. #define    LIGHT    1
  117. #define    WATOIL    2
  118. #define    LIQUID    4
  119. #define    NOPIRAT    8
  120. #define    HINTC    16
  121. #define    HINTB    32
  122. #define    HINTS    64
  123. #define    HINTM    128
  124. #define    HINT    240
  125.  
  126. /*
  127.     Structure definitions
  128. */
  129. struct    wac {
  130.     char    *aword;
  131.     int    acode;
  132.     };
  133.  
  134. struct    trav {
  135.     int    tdest;
  136.     int    tverb;
  137.     int    tcond;
  138.     };
  139.  
  140.  
  141.