DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T t

⟦ba6444173⟧ TextFile

    Length: 1012 (0x3f4)
    Types: TextFile
    Names: »trap.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Nethack/trap.h« 

TextFile

/*	SCCS Id: @(#)trap.h	1.4	87/08/08
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* trap.h - version 1.0.2 */

struct trap {
	struct trap *ntrap;
	xchar tx,ty;
	Bitfield(ttyp,5);
	Bitfield(tseen,1);
	Bitfield(once,1);
};

extern struct trap *ftrap;
struct trap *t_at();
#define newtrap()	(struct trap *) alloc(sizeof(struct trap))

/* Standard Hack traps. */
#define NO_TRAP         0
#define BEAR_TRAP       1
#define ARROW_TRAP      2
#define DART_TRAP       3
#define TRAPDOOR        4
#define TELEP_TRAP      5
#define PIT             6
#define SLP_GAS_TRAP    7
#define PIERC           8
#define MIMIC           9

/* Defines below this line are automatically added by makedefs (-t option) */
/* if you add any additional code below the next line, it will disappear.  */
/* DO NOT REMOVE THIS LINE */

#define	MGTRP		10
#define	SQBRD		11
#define	WEB		12
#define	SPIKED_PIT	13
#define	LEVEL_TELEP	14
#define	ANTI_MAGIC	15
#define	RUST_TRAP	16
#define	POLY_TRAP	17

#define	TRAPNUM	18