version 1.37 | | version 1.38 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: define.h,v 1.37 2001/09/26 21:40:38 garbled Exp $"; | | * "$Id: define.h,v 1.38 2001/10/07 07:12:39 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#define QUERY_FLAG(xyz, p) \ | | #define QUERY_FLAG(xyz, p) \ |
((xyz)->flags[p/32] & (1U << (p % 32))) | | ((xyz)->flags[p/32] & (1U << (p % 32))) |
| | |
| | /* convenience macros to determine what kind of things we are dealing with */ |
| | |
| | #define IS_LIVE(op) \ |
| | (op->type == PLAYER || QUERY_FLAG(op, FLAG_MONSTER) || \ |
| | (QUERY_FLAG(op, FLAG_ALIVE) && !QUERY_FLAG(op, FLAG_GENERATOR) && \ |
| | !op->type == DOOR)) |
| | |
| | #define IS_ARROW(op) \ |
| | (op->type==ARROW || op->type==MMISSILE || op->type==BULLET) |
| | |
| | /* the flags */ |
| | |
#define FLAG_ALIVE 0 /* Object can fight (or be fought) */ | | #define FLAG_ALIVE 0 /* Object can fight (or be fought) */ |
#define FLAG_WIZ 1 /* Object has special privilegies */ | | #define FLAG_WIZ 1 /* Object has special privilegies */ |