Re: ANTI_RACE_FLAGS

From: Usama Hajj (gonzo@KESTREL.SCS.UIUC.EDU)
Date: 05/09/98


---BEGIN INCLUDED FILE
two instead of one.  I might suggest just adding an integer array that
defines if each race can use it or not (something like "int
bad_race[NUM_RACES];").  It would be fairly simple, actually.
---END INCLUDED FILE

But then you would be using NUM_RACES number of ints.  If you simply
add another int bitvector to place all your !RACE flags in, you only
need one int (unless you have a rather large number of races).  This is
more complex, but more efficient.  Or you could use a bit array, which
would amount to about the same thing.

- Nasri.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST