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 h

⟦edfe109a5⟧ TextFile

    Length: 1654 (0x676)
    Types: TextFile
    Names: »hack.h«

Derivation

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

TextFile

/*	SCCS Id: @(#)hack.h	2.1	87/10/18
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */

#ifndef HACK_H
#define HACK_H

#include "extern.h"

#ifdef __TURBOC__
/* work around the case-insensitivity of the DOS linker */
#define Amonnam Amonnam_
#define Xmonnam Xmonnam_
#define Monnam Monnam_
#define POISONOUS POISONOUS_
#define Doname Doname_
#define Tmp_at Tmp_at_
/* rename the next two functions because they clash with the Turbo C library */
#define getdate getdate_
#define itoa itoa_
#endif


#define	Null(type)	((struct type *) 0)

#include	"objclass.h"

typedef struct {
	xchar x,y;
} coord;

extern coord bhitpos;	/* place where thrown weapon falls to the ground */

#include	"monst.h"	/* uses coord */
#include	"gold.h"
#include	"trap.h"
#include	"flag.h"

#define	plur(x)	(((x) == 1) ? "" : "s")
#define min(x,y) ((x) < (y) ? (x) : (y))

#define	BUFSZ	256	/* for getlin buffers */
#define	PL_NSIZ	32	/* name of player, ghost, shopkeeper */

#include	"rm.h"

#define Inhell		(dlevel >= 30)
#define	newstring(x)	(char *) alloc((unsigned)(x))

#ifdef SPELLS
#define	NO_SPELL	0
#endif

#define	TELL	1
#define NOTELL	0

#define ON 1
#define OFF 0

#ifdef GENIX
#define DIST	jhndist
/*	genix compiler chokes on DIST macro below - jhn*/
#else
#define DIST(x1,y1,x2,y2)       (((x1)-(x2))*((x1)-(x2)) + ((y1)-(y2))*((y1)-(y2)))
#endif

#define	PL_CSIZ		20	/* sizeof pl_character */
#ifdef HARD
#define	MAX_CARR_CAP	120	/* so that boulders can be heavier */
#else
#define	MAX_CARR_CAP	500
#endif
#ifdef RPH
#define	MAXLEVEL	60
#else
#define	MAXLEVEL	40
#endif
#define	FAR	(COLNO+2)	/* position outside screen */

#endif /* HACK_H /**/