xref: /netbsd-src/games/hack/def.permonst.h (revision 1c7f94e505e668f20d7b855ceac877d04bd31eb3)
1*1c7f94e5Sjsm /*	$NetBSD: def.permonst.h,v 1.6 2003/04/02 18:36:34 jsm Exp $	*/
23ea4a95cSchristos 
302ded532Smycroft /*
4*1c7f94e5Sjsm  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
5*1c7f94e5Sjsm  * Amsterdam
6*1c7f94e5Sjsm  * All rights reserved.
702ded532Smycroft  *
8*1c7f94e5Sjsm  * Redistribution and use in source and binary forms, with or without
9*1c7f94e5Sjsm  * modification, are permitted provided that the following conditions are
10*1c7f94e5Sjsm  * met:
11*1c7f94e5Sjsm  *
12*1c7f94e5Sjsm  * - Redistributions of source code must retain the above copyright notice,
13*1c7f94e5Sjsm  * this list of conditions and the following disclaimer.
14*1c7f94e5Sjsm  *
15*1c7f94e5Sjsm  * - Redistributions in binary form must reproduce the above copyright
16*1c7f94e5Sjsm  * notice, this list of conditions and the following disclaimer in the
17*1c7f94e5Sjsm  * documentation and/or other materials provided with the distribution.
18*1c7f94e5Sjsm  *
19*1c7f94e5Sjsm  * - Neither the name of the Stichting Centrum voor Wiskunde en
20*1c7f94e5Sjsm  * Informatica, nor the names of its contributors may be used to endorse or
21*1c7f94e5Sjsm  * promote products derived from this software without specific prior
22*1c7f94e5Sjsm  * written permission.
23*1c7f94e5Sjsm  *
24*1c7f94e5Sjsm  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25*1c7f94e5Sjsm  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26*1c7f94e5Sjsm  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
27*1c7f94e5Sjsm  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
28*1c7f94e5Sjsm  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29*1c7f94e5Sjsm  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30*1c7f94e5Sjsm  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31*1c7f94e5Sjsm  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32*1c7f94e5Sjsm  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33*1c7f94e5Sjsm  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34*1c7f94e5Sjsm  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3502ded532Smycroft  */
36*1c7f94e5Sjsm 
37*1c7f94e5Sjsm /*
38*1c7f94e5Sjsm  * Copyright (c) 1982 Jay Fenlason <hack@gnu.org>
39*1c7f94e5Sjsm  * All rights reserved.
40*1c7f94e5Sjsm  *
41*1c7f94e5Sjsm  * Redistribution and use in source and binary forms, with or without
42*1c7f94e5Sjsm  * modification, are permitted provided that the following conditions
43*1c7f94e5Sjsm  * are met:
44*1c7f94e5Sjsm  * 1. Redistributions of source code must retain the above copyright
45*1c7f94e5Sjsm  *    notice, this list of conditions and the following disclaimer.
46*1c7f94e5Sjsm  * 2. Redistributions in binary form must reproduce the above copyright
47*1c7f94e5Sjsm  *    notice, this list of conditions and the following disclaimer in the
48*1c7f94e5Sjsm  *    documentation and/or other materials provided with the distribution.
49*1c7f94e5Sjsm  * 3. The name of the author may not be used to endorse or promote products
50*1c7f94e5Sjsm  *    derived from this software without specific prior written permission.
51*1c7f94e5Sjsm  *
52*1c7f94e5Sjsm  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
53*1c7f94e5Sjsm  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
54*1c7f94e5Sjsm  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
55*1c7f94e5Sjsm  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
56*1c7f94e5Sjsm  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
57*1c7f94e5Sjsm  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
58*1c7f94e5Sjsm  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
59*1c7f94e5Sjsm  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
60*1c7f94e5Sjsm  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
61*1c7f94e5Sjsm  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62*1c7f94e5Sjsm  */
63*1c7f94e5Sjsm 
643ea4a95cSchristos #ifndef _DEF_PERMONST_H_
653ea4a95cSchristos #define _DEF_PERMONST_H_
6661f28255Scgd struct permonst {
67ab8b6343Sjsm 	const char *mname;
68ab8b6343Sjsm 	char mlet;
6961f28255Scgd 	schar mlevel,mmove,ac,damn,damd;
7061f28255Scgd 	unsigned pxlth;
7161f28255Scgd };
7261f28255Scgd 
73ab8b6343Sjsm extern const struct permonst mons[];
7461f28255Scgd #define PM_ACID_BLOB	&mons[7]
7561f28255Scgd #define	PM_ZOMBIE	&mons[13]
7661f28255Scgd #define	PM_PIERCER	&mons[17]
7761f28255Scgd #define	PM_KILLER_BEE	&mons[26]
7861f28255Scgd #define	PM_WRAITH	&mons[33]
7961f28255Scgd #define	PM_MIMIC	&mons[37]
8061f28255Scgd #define	PM_VAMPIRE	&mons[43]
8161f28255Scgd #define	PM_CHAMELEON	&mons[47]
8261f28255Scgd #define	PM_DEMON	&mons[54]
8361f28255Scgd #define	PM_MINOTAUR	&mons[55]	/* last in mons array */
8461f28255Scgd #define	PM_SHK		&mons[56]	/* very last */
8561f28255Scgd #define	PM_GHOST	&pm_ghost
8661f28255Scgd #define	PM_EEL		&pm_eel
8761f28255Scgd #define	PM_WIZARD	&pm_wizard
8861f28255Scgd #define	CMNUM		55		/* number of common monsters */
893ea4a95cSchristos 
903ea4a95cSchristos #endif /* _DEF_PERMONST_H_ */
91