show.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /* =============================================================================
  2. * PROGRAM: ularn
  3. * FILENAME: show.h
  4. *
  5. * DESCRIPTION:
  6. * This module contains functions to print item names and show lists of items.
  7. *
  8. * =============================================================================
  9. * EXPORTED VARIABLES
  10. *
  11. * None
  12. *
  13. * =============================================================================
  14. * EXPORTED FUNCTIONS
  15. *
  16. * show_plusses - Prints the number of plusses as indicated by the input arg
  17. * qshowstr - Show the player's inventory without setting up text mode
  18. * showstr - Show the player's invertory, setting/exiting text mode
  19. * showwear - Show wearable items
  20. * showwield - Show wieldable items
  21. * showread - Show readable items
  22. * showeat - Show edible items
  23. * showquaff - Show quaffable items
  24. * seemagic - Show magic spells/scrolls/potions discovered
  25. * show1 - Show an item name
  26. * show3 - Show an item name with the numebr of plusses
  27. *
  28. * =============================================================================
  29. */
  30. #ifndef __SHOW_H
  31. #define __SHOW_H
  32. /* =============================================================================
  33. * FUNCTION: show_plusses
  34. *
  35. * DESCRIPTION:
  36. * Prints the number of plusses indicated by the input parameter.
  37. *
  38. * PARAMETERS:
  39. *
  40. * plus : The number of plusses to be printed.
  41. *
  42. * RETURN VALUE:
  43. *
  44. * None.
  45. */
  46. void show_plusses(int plus);
  47. /* =============================================================================
  48. * FUNCTION: qshowstr
  49. *
  50. * DESCRIPTION:
  51. * Prints the player's inventory to the current text output window.
  52. * It does not set up or exit text mode.
  53. *
  54. * PARAMETERS:
  55. *
  56. * None.
  57. *
  58. * RETURN VALUE:
  59. *
  60. * None.
  61. */
  62. void qshowstr(void);
  63. /* =============================================================================
  64. * FUNCTION: showstr
  65. *
  66. * DESCRIPTION:
  67. * Displays the player's inventory.
  68. * THis sets up text mode on entry and resets map mode on exit.
  69. *
  70. * PARAMETERS:
  71. *
  72. * None.
  73. *
  74. * RETURN VALUE:
  75. *
  76. * None.
  77. */
  78. void showstr(void);
  79. /* =============================================================================
  80. * FUNCTION: showwear
  81. *
  82. * DESCRIPTION:
  83. * This function displays a list of items in the player's inventory that can
  84. * be worn.
  85. *
  86. * PARAMETERS:
  87. *
  88. * None
  89. *
  90. * RETURN VALUE:
  91. *
  92. * None.
  93. *
  94. */
  95. void showwear(void);
  96. /* =============================================================================
  97. * FUNCTION: showwield
  98. *
  99. * DESCRIPTION:
  100. * This function displays a list of items in the player's inventory that can
  101. * be wielded.
  102. *
  103. * PARAMETERS:
  104. *
  105. * None.
  106. *
  107. * RETURN VALUE:
  108. *
  109. * None.
  110. */
  111. void showwield(void);
  112. /* =============================================================================
  113. * FUNCTION: showread
  114. *
  115. * DESCRIPTION:
  116. * This function displays a list of items in the player's inventory that can
  117. * be read.
  118. *
  119. * PARAMETERS:
  120. *
  121. * None.
  122. *
  123. * RETURN VALUE:
  124. *
  125. * None.
  126. */
  127. void showread(void);
  128. /* =============================================================================
  129. * FUNCTION: showeat
  130. *
  131. * DESCRIPTION:
  132. * This function displays a list of items in the player's inventory that can
  133. * be eaten.
  134. *
  135. * PARAMETERS:
  136. *
  137. * None.
  138. *
  139. * RETURN VALUE:
  140. *
  141. * None.
  142. */
  143. void showeat(void);
  144. /* =============================================================================
  145. * FUNCTION: showquaff
  146. *
  147. * DESCRIPTION:
  148. * This function displays a list of items in the player's inventory that can
  149. * be quaffed.
  150. *
  151. * PARAMETERS:
  152. *
  153. * None.
  154. *
  155. * RETURN VALUE:
  156. *
  157. * None.
  158. */
  159. void showquaff(void);
  160. /* =============================================================================
  161. * FUNCTION: seemagic
  162. *
  163. * DESCRIPTION:
  164. * Function to show what magic items have been discovered thus far.
  165. *
  166. * PARAMETERS:
  167. *
  168. * arg : This value determines what will be displayed
  169. * -1 for just spells,
  170. * 99 gives all spells in game (for when genie asks you what you want)
  171. * anything else will give spells, scrolls & potions
  172. *
  173. * RETURN VALUE:
  174. *
  175. * None.
  176. */
  177. void seemagic(int arg);
  178. /* =============================================================================
  179. * FUNCTION: show1
  180. *
  181. * DESCRIPTION:
  182. * Show an item in the player's inventory.
  183. *
  184. * PARAMETERS:
  185. *
  186. * idx : The index of the item in the player's inventory
  187. *
  188. * str2 : The list of names for potions or scrolls indexed by ivenarg.
  189. * For other items, pass NULL.
  190. *
  191. * known : An array indicating if the scroll/potion is known.
  192. * For other items, pass NULL.
  193. *
  194. * RETURN VALUE:
  195. *
  196. * None.
  197. */
  198. void show1(int idx, char *str2[], int known[]);
  199. /* =============================================================================
  200. * FUNCTION: show3
  201. *
  202. * DESCRIPTION:
  203. * Show a single item in the player's inventory, including plusses.
  204. *
  205. * PARAMETERS:
  206. *
  207. * index : The inventory position of the item to display.
  208. *
  209. * RETURN VALUE:
  210. *
  211. * None.
  212. */
  213. void show3(int index);
  214. #endif