Re: [Circle] [Code idea] Mounts.. ARGH!

From: Niese-Petersen (Tenp@cris.com)
Date: 11/06/96


On Wed, 6 Nov 1996 BuckFloyd@aol.com wrote:

> In a message dated 96-11-05 14:27:08 EST, you write:
> 
---snip---
> >  
> >  You could create a seperate linked list for these mounts and just run
> >  through the short list after/before running through the player list
> >  when you pass through the section that updates the players points.  This
> >  way you don't run through the huge list of *all* mobs to find the IS_MOUNT
> >  flags.  You'd have to add a pointer to the mobs to put them in a new list
> >  or use C++ and put them in a list container (sorry, can't help it ;).

Well. If you already are running through the list of players to update
their points, whey not just have a pointer in char_data for what mob the
player have mounted ?  So if the pointer is not NULL, update the points
for that mob too..

  Maybe insert it in the player_special_data structure:

   struct char_data *mounted; /* 

And then ofcoz when mounting:

   ch->player_specials->mounted = mob;

And in unmount:

   ch->player_specials->mounted = (struct char_data) 0x0;


---
Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP






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



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