Daniel Koepke wrote:
> -+ - how about giving all mobs races, having a 2d array that
> contains the
> -+ relations of one race to the other. on a scale of 0 to 10, 0
> being
> [snip]
> As for the exact implementation of racial hatred, I think a 2D array
> would
> only permit Dwarves to hate one race, or Orcs to only hate one race.
> While
> this might be true in some cases, other cases have it different. An
> army
> of humans and an army of dwarves prepare to attack one anoter, when an
>
> army of wood elves march up to attack both, and then an army of Orcs
> march
> up to attack all three, and finally some eagles come to the rescue
> (sound
> familiar to anyone? :).
>
> It might serve it's purpose better as a NUM_RACES*NUM_RACES array:
>
> bool racial_hatred[NUM_RACES][NUM_RACES] = {
> /* Hum Elf Dwa Orc Eag */
> /* humans */ { false, false, true , true, false },
> .
> .
> .
> .
> };
>
Heh.. that thing above is a 2d array.. Did you leave something important
behind in Texas? ;)
// jorgen
+------------------------------------------------------------+
| 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/08/00 PST