Home | History | Annotate | Line # | Download | only in hack
def.flag.h revision 1.4
      1 /*	$NetBSD: def.flag.h,v 1.4 1997/10/19 16:56:56 christos Exp $	*/
      2 
      3 /*
      4  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
      5  */
      6 #ifndef _DEF_FLAG_H_
      7 #define _DEF_FLAG_H_
      8 struct flag {
      9 	unsigned ident;		/* social security number for each monster */
     10 	unsigned debug:1;	/* in debugging mode */
     11 #define	wizard	flags.debug
     12 	unsigned toplin:2;	/* a top line (message) has been printed */
     13 				/* 0: top line empty; 2: no --More-- reqd. */
     14 	unsigned cbreak:1;	/* in cbreak mode, rogue format */
     15 	unsigned standout:1;	/* use standout for --More-- */
     16 	unsigned nonull:1;	/* avoid sending nulls to the terminal */
     17 	unsigned time:1;	/* display elapsed 'time' */
     18 	unsigned nonews:1;	/* suppress news printing */
     19 	unsigned notombstone:1;
     20 	unsigned end_top, end_around;	/* describe desired score list */
     21 	unsigned end_own:1;		/* idem (list all own scores) */
     22 	unsigned no_rest_on_space:1;	/* spaces are ignored */
     23 	unsigned beginner:1;
     24 	unsigned female:1;
     25 	unsigned invlet_constant:1;	/* let objects keep their
     26 					   inventory symbol */
     27 	unsigned move:1;
     28 	unsigned mv:1;
     29 	unsigned run:3;		/* 0: h (etc), 1: H (etc), 2: fh (etc) */
     30 				/* 3: FH, 4: ff+, 5: ff-, 6: FF+, 7: FF- */
     31 	unsigned nopick:1;	/* do not pickup objects */
     32 	unsigned echo:1;	/* 1 to echo characters */
     33 	unsigned botl:1;	/* partially redo status line */
     34 	unsigned botlx:1;	/* print an entirely new bottom line */
     35 	unsigned nscrinh:1;	/* inhibit nscr() in pline(); */
     36 	unsigned made_amulet:1;
     37 	unsigned no_of_wizards:2;/* 0, 1 or 2 (wizard and his shadow) */
     38 				/* reset from 2 to 1, but never to 0 */
     39 	unsigned moonphase:3;
     40 #define	NEW_MOON	0
     41 #define	FULL_MOON	4
     42 
     43 };
     44 
     45 extern struct flag flags;
     46 
     47 #endif /* _DEF_FLAG_H_ */
     48