Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old August 27, 2010, 17:03   #1
Hajo
Adept
 
Hajo's Avatar
 
Join Date: Aug 2010
Posts: 142
Hajo is on a distinguished road
Unused monster bit flags?

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)

Code:
#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.
__________________
I have a project problem? I have no project problem. I start a project, I work on it, it fails. No problem
Hajo is offline   Reply With Quote
Old August 28, 2010, 05:47   #2
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
While one should always verify (grep the source code for them), generally the _XXX flags aren't used meaningfully.
__________________
Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011
zaimoni is offline   Reply With Quote
Old August 28, 2010, 10:47   #3
Hajo
Adept
 
Hajo's Avatar
 
Join Date: Aug 2010
Posts: 142
Hajo is on a distinguished road
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.
__________________
I have a project problem? I have no project problem. I start a project, I work on it, it fails. No problem
Hajo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Temp Branding Weapon Flags APWhite Variants 15 February 23, 2010 11:21
changes on resistance flags in char screen bebo Vanilla 4 August 5, 2009 19:59
Too darn many flags. :-( PaulBlay Development 9 April 4, 2009 22:59
Monster friend/friends flags CunningGabe Vanilla 5 February 20, 2009 22:30
Something a bit different Aknight Variants 22 June 25, 2008 21:13


All times are GMT +1. The time now is 05:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.