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