xref: /dragonfly/games/battlestar/words.c (revision 5dfd06ac)
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  * @(#)words.c	8.1 (Berkeley) 5/31/93
34  * $FreeBSD: src/games/battlestar/words.c,v 1.2.2.1 2001/03/05 11:45:36 kris Exp $
35  * $DragonFly: src/games/battlestar/words.c,v 1.3 2006/08/08 16:47:20 pavalos Exp $
36  */
37 
38 #include "externs.h"
39 
40 struct wlist wlist[] = {
41 	{ "knife",	KNIFE,		OBJECT,		NULL },
42 	{ "sword",	SWORD,		NOUNS,		NULL },
43 	{ "scabbard",	SWORD,		OBJECT,		NULL },
44 	{ "fine",	SWORD,		OBJECT,		NULL },
45 	{ "two-handed",	TWO_HANDED,	OBJECT,		NULL },
46 	{ "cleaver",	CLEAVER,	OBJECT,		NULL },
47 	{ "broadsword",	BROAD,		OBJECT,		NULL },
48 	{ "mail",	MAIL,		OBJECT,		NULL },
49 	{ "coat",	MAIL,		OBJECT,		NULL },
50 	{ "helmet",	HELM,		OBJECT,		NULL },
51 	{ "shield",	SHIELD,		OBJECT,		NULL },
52 	{ "maid",	MAID,		OBJECT,		NULL },
53 	{ "maid's",	MAID,		OBJECT,		NULL },
54 	{ "body",	BODY,		NOUNS,		NULL },
55 	{ "viper",	VIPER,		OBJECT,		NULL },
56 	{ "lamp",	LAMPON,		OBJECT,		NULL },
57 	{ "lantern",	LAMPON,		OBJECT,		NULL },
58 	{ "shoes",	SHOES,		OBJECT,		NULL },
59 	{ "pajamas",	PAJAMAS,	OBJECT,		NULL },
60 	{ "robe",	ROBE,		OBJECT,		NULL },
61 	{ "amulet",	AMULET,		NOUNS,		NULL },
62 	{ "medallion",	MEDALION,	NOUNS,		NULL },
63 	{ "talisman",	TALISMAN,	NOUNS,		NULL },
64 	{ "woodsman",	DEADWOOD,	OBJECT,		NULL },
65 	{ "woodsman's",	DEADWOOD,	OBJECT,		NULL },
66 	{ "mallet",	MALLET,		OBJECT,		NULL },
67 	{ "laser",	LASER,		OBJECT,		NULL },
68 	{ "pistol",	LASER,		OBJECT,		NULL },
69 	{ "blaster",	LASER,		OBJECT,		NULL },
70 	{ "gun",	LASER,		OBJECT,		NULL },
71 	{ "goddess",	NORMGOD,	NOUNS,		NULL },
72 	{ "grenade",	GRENADE,	OBJECT,		NULL },
73 	{ "chain",	CHAIN,		OBJECT,		NULL },
74 	{ "rope",	ROPE,		OBJECT,		NULL },
75 	{ "levis",	LEVIS,		OBJECT,		NULL },
76 	{ "pants",	LEVIS,		OBJECT,		NULL },
77 	{ "mace",	MACE,		OBJECT,		NULL },
78 	{ "shovel",	SHOVEL,		OBJECT,		NULL },
79 	{ "halberd",	HALBERD,	OBJECT,		NULL },
80 	{ "compass",	COMPASS,	OBJECT,		NULL },
81 	{ "elf",	ELF,		OBJECT,		NULL },
82 	{ "coins",	COINS,		OBJECT,		NULL },
83 	{ "matches",	MATCHES,	OBJECT,		NULL },
84 	{ "match",	MATCHES,	OBJECT,		NULL },
85 	{ "book",	MATCHES,	OBJECT,		NULL },
86 	{ "man",	MAN,		NOUNS,		NULL },
87 	{ "papayas",	PAPAYAS,	OBJECT,		NULL },
88 	{ "pineapple",	PINEAPPLE,	OBJECT,		NULL },
89 	{ "kiwi",	KIWI,		OBJECT,		NULL },
90 	{ "coconuts",	COCONUTS,	OBJECT,		NULL },
91 	{ "mango",	MANGO,		OBJECT,		NULL },
92 	{ "ring",	RING,		OBJECT,		NULL },
93 	{ "potion",	POTION,		OBJECT,		NULL },
94 	{ "bracelet",	BRACELET,	OBJECT,		NULL },
95 	{ "timer",	TIMER,		NOUNS,		NULL },
96 	{ "bomb",	BOMB,		OBJECT,		NULL },
97 	{ "warhead",	BOMB,		OBJECT,		NULL },
98 	{ "girl",	NATIVE,		NOUNS,		NULL },
99 	{ "native",	NATIVE,		NOUNS,		NULL },
100 	{ "horse",	HORSE,		OBJECT,		NULL },
101 	{ "stallion",	HORSE,		OBJECT,		NULL },
102 	{ "car",	CAR,		OBJECT,		NULL },
103 	{ "volare",	CAR,		OBJECT,		NULL },
104 	{ "pot",	POT,		OBJECT,		NULL },
105 	{ "jewels",	POT,		OBJECT,		NULL },
106 	{ "bar",	BAR,		OBJECT,		NULL },
107 	{ "diamond",	BLOCK,		OBJECT,		NULL },
108 	{ "block",	BLOCK,		OBJECT,		NULL },
109 	{ "up",		UP,		VERB,		NULL },
110 	{ "u",		UP,		VERB,		NULL },
111 	{ "down",	DOWN,		VERB,		NULL },
112 	{ "d",		DOWN,		VERB,		NULL },
113 	{ "ahead",	AHEAD,		VERB,		NULL },
114 	{ "a",		AHEAD,		VERB,		NULL },
115 	{ "back",	BACK,		VERB,		NULL },
116 	{ "b",		BACK,		VERB,		NULL },
117 	{ "right",	RIGHT,		VERB,		NULL },
118 	{ "r",		RIGHT,		VERB,		NULL },
119 	{ "left",	LEFT,		VERB,		NULL },
120 	{ "l",		LEFT,		VERB,		NULL },
121 	{ "take",	TAKE,		VERB,		NULL },
122 	{ "get",	TAKE,		VERB,		NULL },
123 	{ "use",	USE,		VERB,		NULL },
124 	{ "look",	LOOK,		VERB,		NULL },
125 	{ "lo",		LOOK,		VERB,		NULL },
126 	{ "quit",	QUIT,		VERB,		NULL },
127 	{ "q",		QUIT,		VERB,		NULL },
128 	{ "su",		SU,		VERB,		NULL },
129 	{ "drop",	DROP,		VERB,		NULL },
130 	{ "draw",	DRAW,		VERB,		NULL },
131 	{ "pull",	DRAW,		VERB,		NULL },
132 	{ "carry",	DRAW,		VERB,		NULL },
133 	{ "wear",	WEARIT,		VERB,		NULL },
134 	{ "sheathe",	WEARIT,		VERB,		NULL },
135 	{ "put",	PUT,		VERB,		NULL },
136 	{ "buckle",	PUT,		VERB,		NULL },
137 	{ "strap",	PUT,		VERB,		NULL },
138 	{ "tie",	PUT,		VERB,		NULL },
139 	{ "inven",	INVEN,		VERB,		NULL },
140 	{ "i",		INVEN,		VERB,		NULL },
141 	{ "everything",	EVERYTHING,	OBJECT,		NULL },
142 	{ "all",	EVERYTHING,	OBJECT,		NULL },
143 	{ "and",	AND,		CONJ,		NULL },
144 	{ "kill",	KILL,		VERB,		NULL },
145 	{ "fight",	KILL,		VERB,		NULL },
146 	{ "ravage",	RAVAGE,		VERB,		NULL },
147 	{ "rape",	RAVAGE,		VERB,		NULL },
148 	{ "undress",	UNDRESS,	VERB,		NULL },
149 	{ "throw",	THROW,		VERB,		NULL },
150 	{ "launch",	LAUNCH,		VERB,		NULL },
151 	{ "land",	LANDIT,		VERB,		NULL },
152 	{ "light",	LIGHT,		VERB,		NULL },
153 	{ "strike",	LIGHT,		VERB,		NULL },
154 	{ "follow",	FOLLOW,		VERB,		NULL },
155 	{ "chase",	FOLLOW,		VERB,		NULL },
156 	{ "kiss",	KISS,		VERB,		NULL },
157 	{ "love",	LOVE,		VERB,		NULL },
158 	{ "fuck",	LOVE,		VERB,		NULL },
159 	{ "give",	GIVE,		VERB,		NULL },
160 	{ "smite",	SMITE,		VERB,		NULL },
161 	{ "attack",	SMITE,		VERB,		NULL },
162 	{ "swing",	SMITE,		VERB,		NULL },
163 	{ "stab",	SMITE,		VERB,		NULL },
164 	{ "slice",	SMITE,		VERB,		NULL },
165 	{ "cut",	SMITE,		VERB,		NULL },
166 	{ "hack",	SMITE,		VERB,		NULL },
167 	{ "shoot",	SHOOT,		VERB,		NULL },
168 	{ "blast",	SHOOT,		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 	{ "save",	SAVE,		VERB,		NULL },
179 	{ "ride",	RIDE,		VERB,		NULL },
180 	{ "mount",	RIDE,		VERB,		NULL },
181 	{ "drive",	DRIVE,		VERB,		NULL },
182 	{ "start",	DRIVE,		VERB,		NULL },
183 	{ "score",	SCORE,		VERB,		NULL },
184 	{ "points",	SCORE,		VERB,		NULL },
185 	{ "bury",	BURY,		VERB,		NULL },
186 	{ "jump",	JUMP,		VERB,		NULL },
187 	{ "kick",	KICK,		VERB,		NULL },
188 	{ "kerosene",	0,		ADJS,		NULL },
189 	{ "plumed",	0,		ADJS,		NULL },
190 	{ "ancient",	0,		ADJS,		NULL },
191 	{ "golden",	0,		ADJS,		NULL },
192 	{ "gold",	0,		ADJS,		NULL },
193 	{ "ostrich",	0,		ADJS,		NULL },
194 	{ "rusty",	0,		ADJS,		NULL },
195 	{ "old",	0,		ADJS,		NULL },
196 	{ "dented",	0,		ADJS,		NULL },
197 	{ "blue",	0,		ADJS,		NULL },
198 	{ "purple",	0,		ADJS,		NULL },
199 	{ "kingly",	0,		ADJS,		NULL },
200 	{ "the",	0,		ADJS,		NULL },
201 	{ "climb",	0,		ADJS,		NULL },
202 	{ "move",	0,		ADJS,		NULL },
203 	{ "make",	0,		ADJS,		NULL },
204 	{ "to",		0,		ADJS,		NULL },
205 	{ 0,		0,		0,		NULL }
206 };
207