Re: [Code]Werewolf Race

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

On Fri, 5 Sep 1997, David Klasinc wrote:

-+Hm, that's true... Maybe it would be even better just to modify fight,
-+regen and other functions? So when the time is right and player is
-+werewolf, you would just use some temoporary modifiers in the current
-+function, then get rid of them, this wouldn't require any AFF_ flags and
-+stuff.. But it is more complicated to code, because you would have to
-+change all the functions that deal with player stats... Kinda messy...

Very messy.  The good thing about C (and then C++) is that it allows
reusability and encapsulation of code.  While it's occassionally necessary
to modify many things in scattered places, you shouldn't when you can
avoid it.  It gives you much less of a headache when tracking down bugs;
and certainly gives a consistent attribute modification.  Agreed, it sucks
to have to use another AFF_xxx flag, but if you're using bitfields, 128-bit
bitvector array, 64-bit "long long"s, or AFF2_/AFF3_ bitvectors you
shouldn't have a problem with adding another AFF_ flag, especially when
it does something cool. :)

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