Re: Where classes become bitvectors?

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 09/27/97

On Sat, 27 Sep 1997, Neuromancer wrote:

-+Where exactly is it that the code changes your chosen class
-+as a bitvector? I've been looking through the code and it looks
-+like it's saved as just "2" for thief and "3" for warrior? Maybe
-+I'm just a little off on the subject, but i was under the impression
-+the code saved you as 4 for thief, 8 for warrior, etc by powers of

No.  Classes are saved as sequential numbers starting from 0.
The only reason classes are changed into bitvectors in stock
Circle is for the class-specific do_who listing.  It simplifies
the code to check whether or not someone is of one of the
specified classes.  I believe the function do_who calls is in

Daniel Koepke -:- -:-  [Shadowlord/Nether]

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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