Re: Bitvectors

From: David Cole (tiznor@hotmail.com)
Date: 01/04/02


Chuck Reed Wrote:
> Did you remember to modify AFF_FLAGGED so that it understands your new
> bitvector scheme?
>

Mike Breuer Wrote:
>If you have different affect slots now, you'll need to make IS_AFFECTED2()
>IS_AFFECTED3 macros to handle that.  That's just a guess from what you've
>given me though.


If your meaning the macro's:

#define AFF_FLAGS(ch) ((ch)->char_specials.saved.affected_by)
#define AFF2_FLAGS(ch) ((ch)->char_specials.saved.affected_by2)
#define AFF3_FLAGS(ch) ((ch)->char_specials.saved.affected_by3)
#define AFF4_FLAGS(ch) ((ch)->char_specials.saved.affected_by4)

#define AFF_FLAGGED(ch, flag) (IS_SET(AFF_FLAGS(ch), (flag)))
#define AFF2_FLAGGED(ch, flag) (IS_SET(AFF2_FLAGS(ch), (flag)))
#define AFF3_FLAGGED(ch, flag) (IS_SET(AFF3_FLAGS(ch), (flag)))
#define AFF4_FLAGGED(ch, flag) (IS_SET(AFF4_FLAGS(ch), (flag)))

#define IS_AFFECTED(ch, skill) (AFF_FLAGGED((ch), (skill)))
#define IS_AFFECTED2(ch, skill) (AFF2_FLAGGED((ch), (skill)))
#define IS_AFFECTED3(ch, skill) (AFF3_FLAGGED((ch), (skill)))
#define IS_AFFECTED4(ch, skill) (AFF4_FLAGGED((ch), (skill)))

Yes, or did I over look something and these above are wrong?

Thanks,
Dave (Tiznor)

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT