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