words.c 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /* $NetBSD: words.c,v 1.11 2003/08/07 09:37:03 agc Exp $ */
  2. /*
  3. * Copyright (c) 1983, 1993
  4. * The Regents of the University of California. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. * 3. Neither the name of the University nor the names of its contributors
  15. * may be used to endorse or promote products derived from this software
  16. * without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  19. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  20. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  22. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  23. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  24. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  25. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  26. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  27. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. * SUCH DAMAGE.
  29. */
  30. #include <sys/cdefs.h>
  31. #ifndef lint
  32. #if 0
  33. static char sccsid[] = "@(#)words.c 8.2 (Berkeley) 4/28/95";
  34. #else
  35. __RCSID("$NetBSD: words.c,v 1.11 2003/08/07 09:37:03 agc Exp $");
  36. #endif
  37. #endif /* not lint */
  38. #include "extern.h"
  39. struct wlist wlist[] = {
  40. { "knife", KNIFE, OBJECT, NULL },
  41. { "sword", SWORD, NOUNS, NULL },
  42. { "scabbard", SWORD, OBJECT, NULL },
  43. { "fine", SWORD, OBJECT, NULL },
  44. { "two-handed", TWO_HANDED, OBJECT, NULL },
  45. { "cleaver", CLEAVER, OBJECT, NULL },
  46. { "broadsword", BROAD, OBJECT, NULL },
  47. { "mail", MAIL, OBJECT, NULL },
  48. { "coat", MAIL, OBJECT, NULL },
  49. { "helmet", HELM, OBJECT, NULL },
  50. { "shield", SHIELD, OBJECT, NULL },
  51. { "maid", MAID, OBJECT, NULL },
  52. { "maid's", MAID, OBJECT, NULL },
  53. { "body", BODY, NOUNS, NULL },
  54. { "viper", VIPER, OBJECT, NULL },
  55. { "lamp", LAMPON, OBJECT, NULL },
  56. { "lantern", LAMPON, OBJECT, NULL },
  57. { "shoes", SHOES, OBJECT, NULL },
  58. { "pajamas", PAJAMAS, OBJECT, NULL },
  59. { "robe", ROBE, OBJECT, NULL },
  60. { "amulet", AMULET, NOUNS, NULL },
  61. { "medallion", MEDALION, NOUNS, NULL },
  62. { "talisman", TALISMAN, NOUNS, NULL },
  63. { "woodsman", DEADWOOD, OBJECT, NULL },
  64. { "woodsman's", DEADWOOD, OBJECT, NULL },
  65. { "mallet", MALLET, OBJECT, NULL },
  66. { "laser", LASER, OBJECT, NULL },
  67. { "pistol", LASER, OBJECT, NULL },
  68. { "blaster", LASER, OBJECT, NULL },
  69. { "gun", LASER, OBJECT, NULL },
  70. { "goddess", NORMGOD, NOUNS, NULL },
  71. { "grenade", GRENADE, OBJECT, NULL },
  72. { "chain", CHAIN, OBJECT, NULL },
  73. { "rope", ROPE, OBJECT, NULL },
  74. { "levis", LEVIS, OBJECT, NULL },
  75. { "pants", LEVIS, OBJECT, NULL },
  76. { "mace", MACE, OBJECT, NULL },
  77. { "shovel", SHOVEL, OBJECT, NULL },
  78. { "halberd", HALBERD, OBJECT, NULL },
  79. { "compass", COMPASS, OBJECT, NULL },
  80. { "elf", ELF, OBJECT, NULL },
  81. { "coins", COINS, OBJECT, NULL },
  82. { "matches", MATCHES, OBJECT, NULL },
  83. { "match", MATCHES, OBJECT, NULL },
  84. { "book", MATCHES, OBJECT, NULL },
  85. { "man", MAN, NOUNS, NULL },
  86. { "papaya", PAPAYAS, OBJECT, NULL },
  87. { "papayas", PAPAYAS, OBJECT, NULL },
  88. { "pineapple", PINEAPPLE, OBJECT, NULL },
  89. { "kiwi", KIWI, OBJECT, NULL },
  90. { "coconut", COCONUTS, OBJECT, NULL },
  91. { "coconuts", COCONUTS, OBJECT, NULL },
  92. { "mango", MANGO, OBJECT, NULL },
  93. { "ring", RING, OBJECT, NULL },
  94. { "potion", POTION, OBJECT, NULL },
  95. { "bracelet", BRACELET, OBJECT, NULL },
  96. { "timer", TIMER, NOUNS, NULL },
  97. { "bomb", BOMB, OBJECT, NULL },
  98. { "warhead", BOMB, OBJECT, NULL },
  99. { "girl", NATIVE, NOUNS, NULL },
  100. { "native", NATIVE, NOUNS, NULL },
  101. { "horse", HORSE, OBJECT, NULL },
  102. { "stallion", HORSE, OBJECT, NULL },
  103. { "car", CAR, OBJECT, NULL },
  104. { "volare", CAR, OBJECT, NULL },
  105. { "pot", POT, OBJECT, NULL },
  106. { "jewels", POT, OBJECT, NULL },
  107. { "bar", BAR, OBJECT, NULL },
  108. { "diamond", BLOCK, OBJECT, NULL },
  109. { "block", BLOCK, OBJECT, NULL },
  110. { "up", UP, VERB, NULL },
  111. { "u", UP, VERB, NULL },
  112. { "down", DOWN, VERB, NULL },
  113. { "d", DOWN, VERB, NULL },
  114. { "ahead", AHEAD, VERB, NULL },
  115. { "a", AHEAD, VERB, NULL },
  116. { "back", BACK, VERB, NULL },
  117. { "b", BACK, VERB, NULL },
  118. { "right", RIGHT, VERB, NULL },
  119. { "r", RIGHT, VERB, NULL },
  120. { "left", LEFT, VERB, NULL },
  121. { "l", LEFT, VERB, NULL },
  122. { "take", TAKE, VERB, NULL },
  123. { "get", TAKE, VERB, NULL },
  124. { "use", USE, VERB, NULL },
  125. { "look", LOOK, VERB, NULL },
  126. { "lo", LOOK, VERB, NULL },
  127. { "quit", QUIT, VERB, NULL },
  128. { "q", QUIT, VERB, NULL },
  129. { "su", SU, VERB, NULL },
  130. { "drop", DROP, VERB, NULL },
  131. { "draw", DRAW, VERB, NULL },
  132. { "pull", DRAW, VERB, NULL },
  133. { "carry", DRAW, VERB, NULL },
  134. { "wear", WEARIT, VERB, NULL },
  135. { "sheathe", WEARIT, VERB, NULL },
  136. { "put", PUT, VERB, NULL },
  137. { "buckle", PUT, VERB, NULL },
  138. { "strap", PUT, VERB, NULL },
  139. { "tie", PUT, VERB, NULL },
  140. { "inven", INVEN, VERB, NULL },
  141. { "i", INVEN, VERB, NULL },
  142. { "everything", EVERYTHING, OBJECT, NULL },
  143. { "all", EVERYTHING, OBJECT, NULL },
  144. { "and", AND, CONJ, NULL },
  145. { ",", AND, CONJ, NULL },
  146. { "kill", KILL, VERB, NULL },
  147. { "fight", KILL, VERB, NULL },
  148. { "ravage", RAVAGE, VERB, NULL },
  149. { "rape", RAVAGE, VERB, NULL },
  150. { "undress", UNDRESS, VERB, NULL },
  151. { "throw", THROW, VERB, NULL },
  152. { "launch", LAUNCH, VERB, NULL },
  153. { "land", LANDIT, VERB, NULL },
  154. { "light", LIGHT, VERB, NULL },
  155. { "strike", LIGHT, VERB, NULL },
  156. { "follow", FOLLOW, VERB, NULL },
  157. { "chase", FOLLOW, VERB, NULL },
  158. { "kiss", KISS, VERB, NULL },
  159. { "love", LOVE, VERB, NULL },
  160. { "fuck", LOVE, VERB, NULL },
  161. { "give", GIVE, VERB, NULL },
  162. { "smite", SMITE, VERB, NULL },
  163. { "attack", SMITE, VERB, NULL },
  164. { "swing", SMITE, VERB, NULL },
  165. { "stab", SMITE, VERB, NULL },
  166. { "slice", SMITE, VERB, NULL },
  167. { "cut", SMITE, VERB, NULL },
  168. { "hack", SMITE, VERB, NULL },
  169. { "shoot", SHOOT, VERB, NULL },
  170. { "blast", SHOOT, VERB, NULL },
  171. { "open", OPEN, VERB, NULL },
  172. { "unlock", OPEN, VERB, NULL },
  173. { "on", ON, PREPS, NULL },
  174. { "off", OFF, PREPS, NULL },
  175. { "time", TIME, VERB, NULL },
  176. { "sleep", SLEEP, VERB, NULL },
  177. { "dig", DIG, VERB, NULL },
  178. { "eat", EAT, VERB, NULL },
  179. { "swim", SWIM, VERB, NULL },
  180. { "drink", DRINK, VERB, NULL },
  181. { "door", DOOR, NOUNS, NULL },
  182. { "verbose", VERBOSE, VERB, NULL },
  183. { "brief", BRIEF, VERB, NULL },
  184. { "save", SAVE, VERB, NULL },
  185. { "ride", RIDE, VERB, NULL },
  186. { "mount", RIDE, VERB, NULL },
  187. { "drive", DRIVE, VERB, NULL },
  188. { "start", DRIVE, VERB, NULL },
  189. { "score", SCORE, VERB, NULL },
  190. { "points", SCORE, VERB, NULL },
  191. { "bury", BURY, VERB, NULL },
  192. { "jump", JUMP, VERB, NULL },
  193. { "kick", KICK, VERB, NULL },
  194. { "kerosene", 0, ADJS, NULL },
  195. { "plumed", 0, ADJS, NULL },
  196. { "ancient", 0, ADJS, NULL },
  197. { "golden", 0, ADJS, NULL },
  198. { "gold", 0, ADJS, NULL },
  199. { "ostrich", 0, ADJS, NULL },
  200. { "rusty", 0, ADJS, NULL },
  201. { "old", 0, ADJS, NULL },
  202. { "dented", 0, ADJS, NULL },
  203. { "blue", 0, ADJS, NULL },
  204. { "purple", 0, ADJS, NULL },
  205. { "kingly", 0, ADJS, NULL },
  206. { "the", 0, ADJS, NULL },
  207. { "climb", AUXVERB, VERB, NULL },
  208. { "move", AUXVERB, VERB, NULL },
  209. { "make", AUXVERB, VERB, NULL },
  210. { "to", 0, ADJS, NULL },
  211. { NULL, 0, 0, NULL }
  212. };