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