Source:NetHack 3.0.0/trap.h
Revision as of 05:40, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.0.0/trap.h moved to Source:NetHack 3.0.0/trap.h: Robot: moved page)
Below is the full text to trap.h from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/trap.h#line123]], for example.
Warning! This is the source code from an old release. For the latest release, see Source code
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. /* SCCS Id: @(#)trap.h 3.0 88/06/19 2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3. /* NetHack may be freely redistributed. See license for details. */ 4. 5. #ifndef TRAP_H 6. #define TRAP_H 7. 8. struct trap { 9. struct trap *ntrap; 10. xchar tx,ty; 11. Bitfield(ttyp,5); 12. Bitfield(tseen,1); 13. Bitfield(once,1); 14. unsigned pm; /* monster type for (MONST | STATUE)_TRAP */ 15. }; 16. 17. extern struct trap *ftrap; 18. #define newtrap() (struct trap *) alloc(sizeof(struct trap)) 19. 20. /* Standard Hack traps. */ 21. #define NO_TRAP 0 22. #define MONST_TRAP 1 23. #define STATUE_TRAP 2 24. #define BEAR_TRAP 3 25. #define ARROW_TRAP 4 26. #define DART_TRAP 5 27. #define TRAPDOOR 6 28. #define TELEP_TRAP 7 29. #define PIT 8 30. #define SLP_GAS_TRAP 9 31. 32. /* Defines below this line are automatically added by makedefs (-t option) */ 33. /* if you add any additional code below the next line, it will disappear. */ 34. /* DO NOT REMOVE THIS LINE */ 35. 36. #define MGTRP 10 37. #define SQBRD 11 38. #define WEB 12 39. #define SPIKED_PIT 13 40. #define LEVEL_TELEP 14 41. #define ANTI_MAGIC 15 42. #define RUST_TRAP 16 43. #define POLY_TRAP 17 44. #define LANDMINE 18 45. 46. #define TRAPNUM 19 47. 48. #endif /* TRAP_H /**/