|
|
1.1 ! root 1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ ! 2: /* def.trap.h - version 1.0.2 */ ! 3: ! 4: struct trap { ! 5: struct trap *ntrap; ! 6: xchar tx,ty; ! 7: unsigned ttyp:5; ! 8: unsigned tseen:1; ! 9: unsigned once:1; ! 10: }; ! 11: ! 12: extern struct trap *ftrap; ! 13: struct trap *t_at(); ! 14: #define newtrap() (struct trap *) alloc(sizeof(struct trap)) ! 15: ! 16: /* various kinds of traps */ ! 17: #define BEAR_TRAP 0 ! 18: #define ARROW_TRAP 1 ! 19: #define DART_TRAP 2 ! 20: #define TRAPDOOR 3 ! 21: #define TELEP_TRAP 4 ! 22: #define PIT 5 ! 23: #define SLP_GAS_TRAP 6 ! 24: #define PIERC 7 ! 25: #define MIMIC 8 /* used only in mklev.c */ ! 26: #define TRAPNUM 9 /* if not less than 32, change sizeof(ttyp) */ ! 27: /* see also mtrapseen (bit map) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.