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