1 /* 2 Copyright (C) 1998 Jeffrey S. Freedman 3 4 This program is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public License 6 as published by the Free Software Foundation; either version 2 7 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #ifndef FLAGS_H 20 #define FLAGS_H 21 22 23 namespace Obj_flags { 24 enum { // Bit #'s of flags: 25 invisible = 0, 26 asleep = 1, 27 charmed = 2, 28 cursed = 3, 29 dead = 4, 30 in_party = 6, // Guess, appears to be correct 31 paralyzed = 7, 32 poisoned = 8, 33 protection = 9, 34 on_moving_barge = 10, // ??Guessing. 35 okay_to_take = 11, // Okay to take?? 36 might = 12, // Double strength, dext, intel. 37 immunities = 13, // Test flag in Monster_info. 38 cant_die = 14, // Test flag in Monster_info. 39 dancing = 15, // ??Not sure. 40 dont_move = 16, // User can't move. 41 bg_dont_render = 16, // In BG: also completely invisible. 42 si_on_moving_barge = 17,// SI's version of 10? 43 is_temporary = 18, // Is temporary 44 okay_to_land = 21, // Used for flying-carpet. 45 bg_dont_move = 22, // Exult-only: BG version of dont_move flag 46 dont_render = 22, // Exult-only: Non-BG version of bg_dont_render flag 47 in_dungeon = 23, // Pretty sure. If set, you won't 48 // be accused of stealing food. 49 confused = 25, // ??Guessing. 50 in_motion = 26, // ??Guessing (cart, boat)?? 51 met = 28, // Has the npc been met 52 tournament = 29, // Call usecode (eventid=7) 53 // Originally SI-only, but allowed for BG in Exult 54 si_zombie = 30, // Used for sick Neyobi. 55 no_spell_casting = 31, // Known (cheat screen). 56 // Flags > 31 57 polymorph = 32, // SI. Pretty sure about this. 58 tattooed = 33, // Guess (SI). 59 read = 34, // Guess (SI). 60 petra = 35, // Guess 61 fly = 36, // Known (cheat screen). Get/set/clear fly type flag. 62 freeze = 37, // SI. Pretty sure. 63 naked = 38 // Exult. Makes the avatar naked given its skin. 64 }; 65 } 66 67 #endif 68