1 /* $OpenBSD: def.flag.h,v 1.4 2016/01/09 18:33:15 mestre Exp $*/ 2 /* $NetBSD: def.flag.h,v 1.3 1995/03/23 08:29:22 cgd Exp $*/ 3 4 /* 5 * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, 6 * Amsterdam 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions are 11 * met: 12 * 13 * - Redistributions of source code must retain the above copyright notice, 14 * this list of conditions and the following disclaimer. 15 * 16 * - Redistributions in binary form must reproduce the above copyright 17 * notice, this list of conditions and the following disclaimer in the 18 * documentation and/or other materials provided with the distribution. 19 * 20 * - Neither the name of the Stichting Centrum voor Wiskunde en 21 * Informatica, nor the names of its contributors may be used to endorse or 22 * promote products derived from this software without specific prior 23 * written permission. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 26 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 28 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 29 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 31 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 32 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 33 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 34 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38 /* 39 * Copyright (c) 1982 Jay Fenlason <hack@gnu.org> 40 * All rights reserved. 41 * 42 * Redistribution and use in source and binary forms, with or without 43 * modification, are permitted provided that the following conditions 44 * are met: 45 * 1. Redistributions of source code must retain the above copyright 46 * notice, this list of conditions and the following disclaimer. 47 * 2. Redistributions in binary form must reproduce the above copyright 48 * notice, this list of conditions and the following disclaimer in the 49 * documentation and/or other materials provided with the distribution. 50 * 3. The name of the author may not be used to endorse or promote products 51 * derived from this software without specific prior written permission. 52 * 53 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 54 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 55 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 56 * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 57 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 58 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 59 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 60 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 61 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 62 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 63 */ 64 65 struct flag { 66 unsigned ident; /* social security number for each monster */ 67 unsigned debug:1; /* in debugging mode */ 68 #define wizard flags.debug 69 unsigned toplin:2; /* a top line (message) has been printed */ 70 /* 0: top line empty; 2: no --More-- reqd. */ 71 unsigned cbreak:1; /* in cbreak mode, rogue format */ 72 unsigned standout:1; /* use standout for --More-- */ 73 unsigned nonull:1; /* avoid sending nulls to the terminal */ 74 unsigned time:1; /* display elapsed 'time' */ 75 unsigned nonews:1; /* suppress news printing */ 76 unsigned notombstone:1; 77 unsigned end_top, end_around; /* describe desired score list */ 78 unsigned end_own:1; /* idem (list all own scores) */ 79 unsigned no_rest_on_space:1; /* spaces are ignored */ 80 unsigned beginner:1; 81 unsigned female:1; 82 unsigned invlet_constant:1; /* let objects keep their 83 inventory symbol */ 84 unsigned move:1; 85 unsigned mv:1; 86 unsigned run:3; /* 0: h (etc), 1: H (etc), 2: fh (etc) */ 87 /* 3: FH, 4: ff+, 5: ff-, 6: FF+, 7: FF- */ 88 unsigned nopick:1; /* do not pickup objects */ 89 unsigned echo:1; /* 1 to echo characters */ 90 unsigned botl:1; /* partially redo status line */ 91 unsigned botlx:1; /* print an entirely new bottom line */ 92 unsigned nscrinh:1; /* inhibit nscr() in pline(); */ 93 unsigned made_amulet:1; 94 unsigned no_of_wizards:2;/* 0, 1 or 2 (wizard and his shadow) */ 95 /* reset from 2 to 1, but never to 0 */ 96 unsigned moonphase:3; 97 #define NEW_MOON 0 98 #define FULL_MOON 4 99 100 }; 101 102 extern struct flag flags; 103