Source:NetHack 5.0.0/include/mfndpos.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to mfndpos.h from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/include/mfndpos.h#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. /* NetHack 5.0	mfndpos.h	$NHDT-Date: 1596498546 2020/08/03 23:49:06 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.14 $ */
2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3. /*-Copyright (c) Michael Allison, 2005. */
4. /* NetHack may be freely redistributed.  See license for details. */
5. 
6. #ifndef MFNDPOS_H
7. #define MFNDPOS_H
8. 
9. /* clang-format off */
10. #define ALLOW_MDISP 0x00001000L  /* can displace a monster out of its way */
11. #define ALLOW_TRAPS 0x00020000L  /* can enter traps */
12. #define ALLOW_U     0x00040000L  /* can attack you */
13. #define ALLOW_M     0x00080000L  /* can attack other monsters */
14. #define ALLOW_TM    0x00100000L  /* can attack tame monsters */
15. #define ALLOW_ALL (ALLOW_U | ALLOW_M | ALLOW_TM | ALLOW_TRAPS)
16. #define NOTONL      0x00200000L  /* avoids direct line to player */
17. #define OPENDOOR    0x00400000L  /* opens closed doors */
18. #define UNLOCKDOOR  0x00800000L  /* unlocks locked doors */
19. #define BUSTDOOR    0x01000000L  /* breaks any doors */
20. #define ALLOW_ROCK  0x02000000L  /* pushes rocks */
21. #define ALLOW_WALL  0x04000000L  /* walks through walls */
22. #define ALLOW_DIG   0x08000000L  /* digs */
23. #define ALLOW_BARS  0x10000000L  /* may pass through iron bars */
24. #define ALLOW_SANCT 0x20000000L  /* enters temples */
25. #define ALLOW_SSM   0x40000000L  /* ignores scare monster */
26. #ifdef NHSTDC
27. #define NOGARLIC    0x80000000UL /* hates garlic */
28. #else
29. #define NOGARLIC    0x80000000L  /* hates garlic */
30. #endif
31. /* clang-format on */
32. 
33. struct mfndposdata {
34.     int cnt;
35.     coord poss[9];
36.     long info[9];
37. };
38. 
39. #endif /* MFNDPOS_H */