version 1.50 | | version 1.51 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: define.h,v 1.50 2001/11/28 04:44:42 michtoen Exp $"; | | * "$Id: define.h,v 1.51 2002/01/01 23:37:54 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* convenience macros to determine what kind of things we are dealing with */ | | /* convenience macros to determine what kind of things we are dealing with */ |
| | |
| | #define IS_WEAPON(op) \ |
| | (op->type == ARROW || op->type == BOW || op->type == WEAPON) |
| | |
| | #define IS_ARMOR(op) \ |
| | (op->type == ARMOUR || op->type == SHIELD || op->type == HELMET || \ |
| | op->type == CLOAK || op->type == BOOTS || op->type == GLOVES || \ |
| | op->type == BRACERS || op->type == GIRDLE) |
| | |
#define IS_LIVE(op) \ | | #define IS_LIVE(op) \ |
(op->type == PLAYER || QUERY_FLAG(op, FLAG_MONSTER) || \ | | (op->type == PLAYER || QUERY_FLAG(op, FLAG_MONSTER) || \ |
(QUERY_FLAG(op, FLAG_ALIVE) && !QUERY_FLAG(op, FLAG_GENERATOR) && \ | | (QUERY_FLAG(op, FLAG_ALIVE) && !QUERY_FLAG(op, FLAG_GENERATOR) && \ |
| | |
#define FLAG_NEUTRAL 100 /* monster is from type neutral */ | | #define FLAG_NEUTRAL 100 /* monster is from type neutral */ |
#define FLAG_NO_ATTACK 101 /* monster don't attack */ | | #define FLAG_NO_ATTACK 101 /* monster don't attack */ |
#define FLAG_NO_DAMAGE 102 /* monster can't be damaged */ | | #define FLAG_NO_DAMAGE 102 /* monster can't be damaged */ |
| | #define FLAG_OBJ_ORIGINAL 103 /* NEVER SET THIS. Item was loaded by |
#define NUM_FLAGS 102 /* Should always be equal to the last | | * load_original_map() */ |
| | #define FLAG_OBJ_SAVE_ON_OVL 104 /* this object should be saved on |
| | * the overlay, and is not subject to |
| | * decay. */ |
| | #define NUM_FLAGS 104 /* Should always be equal to the last |
* defined flag */ | | * defined flag */ |
| | |
/* Values can go up to 127 before the size of the flags array in the | | /* Values can go up to 127 before the size of the flags array in the |