-/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
-/* def.monst.h - version 1.0.2 */
+/* $NetBSD: def.monst.h,v 1.6 2001/03/25 20:43:58 jsm Exp $ */
+/*
+ * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
+ */
+#ifndef _DEF_MONST_H_
+#define _DEF_MONST_H_
struct monst {
struct monst *nmon;
- struct permonst *data;
+ const struct permonst *data;
unsigned m_id;
xchar mx,my;
xchar mdx,mdy; /* if mdispl then pos where last displayed */
Bitfield(mnamelth,6); /* length of name (following mxlth) */
#ifndef NOWORM
Bitfield(wormno,5); /* at most 31 worms on any level */
-#endif NOWORM
+#endif /* NOWORM */
unsigned mtrapseen; /* bitmap of traps we've been trapped in */
long mlstmv; /* prevent two moves at once */
struct obj *minvent;
extern struct monst *fmon;
extern struct monst *fallen_down;
-struct monst *m_at();
/* these are in mspeed */
#define MSLOW 1 /* slow monster */
#define NAME(mtmp) (((char *) mtmp->mextra) + mtmp->mxlth)
#define MREGEN "TVi1"
#define UNDEAD "ZVW "
+#endif /* _DEF_MONST_H_ */