… | |
… | |
370 | /* |
370 | /* |
371 | * If any FLAG's are added or changed, make sure the flag_names structure in |
371 | * If any FLAG's are added or changed, make sure the flag_names structure in |
372 | * common/loader.C is updated. |
372 | * common/loader.C is updated. |
373 | */ |
373 | */ |
374 | |
374 | |
375 | /* Basic routines to do above */ |
|
|
376 | #define SET_FLAG(obj, flg) (obj)->flag [flg] = 1 |
|
|
377 | #define CLEAR_FLAG(obj, flg) (obj)->flag [flg] = 0 |
|
|
378 | #define QUERY_FLAG(obj, flg) (obj)->flag [flg] |
|
|
379 | |
|
|
380 | /* the flags */ |
375 | /* the flags */ |
381 | |
376 | |
382 | #define FLAG_ALIVE 0 /* Object can fight (or be fought) */ |
377 | #define FLAG_ALIVE 0 /* Object can fight (or be fought) */ |
383 | #define FLAG_WIZ 1 /* Object has special privilegies */ |
378 | #define FLAG_WIZ 1 /* Object has special privilegies */ |
384 | #define FLAG_REMOVED 2 /* Object is not in any map or inventory */ |
379 | #define FLAG_REMOVED 2 /* Object is not in any map or inventory */ |