PDA

View Full Version : Unused monster bit flags?


Hajo
August 27, 2010, 17:03
I'm still working with the old Angband 2.9.3 codebase, and saw that some of the monster bit flags seem to be unused (in defines.h)

#define RF2_STUPID 0x00000001 /* Monster is stupid */
#define RF2_SMART 0x00000002 /* Monster is smart */
#define RF2_XXX1 0x00000004 /* (?) */
#define RF2_XXX2 0x00000008 /* (?) */

Are these really unused, or is it just unknown if those are used (e.g. potentially hardcoded somewhere)? I'd like to use some of them for a few new features that I want to test.

zaimoni
August 28, 2010, 05:47
While one should always verify (grep the source code for them), generally the _XXX flags aren't used meaningfully.

Hajo
August 28, 2010, 10:47
Ok, thanks.

Maybe I'll introduce a 7th bitfield for my own flags. I see that the other fields are thematically sorted, and the flags in question would fit to the first field, which is already used up fully though.