On Mon, 9 Dec 1996, Daniel Koepke wrote: - On Sun, 8 Dec 1996, Sammy wrote: - > - > This would be really simple and very flexible if you converted people - > (including mobs), objects, and rooms into linked list format. It's no - > small chore, but it makes what you're thinking of doing much easier. You - > could simply add an in_object pointer to the char_data structure to put a - > mob or person in an object. You could also have a room->in_object, - > room->in_room, or to be really weird, room->in_person. - - Why would you need to convert to a "linked list format" to add pointers - to the structures? All you would need to do is put pointers in the - structures. But even that is not neccessary. You could simply have - certain objects have a room number attributed to it that when "entered" - it would put the person in that room. Oh sure do it the boring way :P Ok so I just really really like linked lists :) Sam +-----------------------------------------------------------+ | 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