X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/10e9633963797cac6bb94bb2950e7a1fcc25c1d3..77949edf212dfa805753ec2d69e3e91181793816:/larn/header.h diff --git a/larn/header.h b/larn/header.h index f616f248..2389d587 100644 --- a/larn/header.h +++ b/larn/header.h @@ -1,5 +1,9 @@ +/* $NetBSD: header.h,v 1.9 1997/03/29 20:42:20 thorpej Exp $ */ + /* header.h Larn is copyrighted 1986 by Noah Morgan. */ +#include + #define MAXLEVEL 11 /* max # levels in the dungeon */ #define MAXVLEVEL 3 @@ -46,7 +50,6 @@ struct monst struct _itm { short price; - char **mem; char obj; char arg; char qty; @@ -68,7 +71,7 @@ struct sphere struct sphere *p; /* pointer to next structure */ char x,y,lev; /* location of the sphere */ char dir; /* direction sphere is going in */ - char lifetime; /* duration of the sphere */ + short lifetime; /* duration of the sphere */ }; /* defines for the character attribute array c[] */ @@ -328,10 +331,10 @@ struct sphere #ifndef NODEFS extern char VERSION,SUBVERSION; extern char aborted[],alpha[],beenhere[],boldon,cheat,ckpfile[],ckpflag; -extern char *class[],course[],diagfile[],fortfile[],helpfile[]; +extern char *class[],course[],diagfile[],helpfile[]; extern char *inbuffer,is_alpha[],is_digit[]; extern char item[MAXX][MAXY],iven[],know[MAXX][MAXY],larnlevels[],lastmonst[]; -extern char level,*levelname[],logfile[],loginname[],logname[],*lpbuf,*lpend; +extern char *levelname[],logfile[],loginname[],logname[],*lpbuf,*lpend; extern char *lpnt,moved[MAXX][MAXY],mitem[MAXX][MAXY],monstlevel[]; extern char monstnamelist[],nch[],ndgg[],nlpts[],nomove,nosignal,nowelcome; extern char nplt[],nsw[],*objectname[],objnamelist[],optsfile[]; @@ -343,8 +346,9 @@ extern char spelknow[],*spelname[],*spelmes[],spelweird[MAXMONST+8][SPNUM]; extern char splev[],stealth[MAXX][MAXY],to_lower[],to_upper[],wizard; extern short diroffx[],diroffy[],hitflag,hit2flag,hit3flag,hitp[MAXX][MAXY]; extern short iarg[MAXX][MAXY],ivenarg[],lasthx,lasthy,lastnum,lastpx,lastpy; -extern short nobeep,oldx,oldy,playerx,playery; +extern short nobeep,oldx,oldy,playerx,playery,level; extern int dayplay,enable_scroll,srcount,yrepcount,userid,wisid,lfd,fd; +extern uid_t uid, euid; extern long initialtime,outstanding_taxes,skill[],gtime,c[],cbak[]; extern unsigned long randx; extern struct cel *cell; @@ -352,10 +356,11 @@ extern struct monst monster[]; extern struct sphere *spheres; extern struct _itm itm[]; -char *fortune(),*malloc(),*getenv(),*getlogin(),*lgetw(),*lgetl(),*ctime(); +char *fortune(),*getenv(),*getlogin(),*lgetw(),*lgetl(),*ctime(); char *tmcapcnv(),*tgetstr(),*tgoto(); -long paytaxes(),lgetc(),lrint(),time(); +long paytaxes(),lgetc(),lrint(); unsigned long readnum(); +void *malloc(); /* macro to create scroll #'s with probability of occurrence */ #define newscroll() (scprob[rund(81)])