Re: Proposal for the skills array

From: George Greer (
Date: 11/05/02

On Tue, 5 Nov 2002, Jesse Becker wrote:

>In our case, there are generally two types of mobs with skills:  1)
>"Named" mobs (i.e. the important dudes, not the cannon fodder... err ...
>peons ... ), and 2) Trainers. [...]
>Even so, the number of mobs with skills is far, far below the number of
>mobs without, and the code for the linked list isn't terribly complicated.

You could change the skill list to be a pointer to an array.  If the mobile
has no skills, point it at dummy_mob's skill list.  If they have skills,
you give them the full array and fill in the values.  Only change would be
some . to -> conversions, excluding the obvious "can't save a pointer"
problem but that's in a linked list too.  If you've already done the linked
list then it's not worth going back to.

George Greer

   | FAQ: |
   | Archives: |
   | Newbie List:   |

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