Re: Nanny function

From: George Greer (greerga@circlemud.org)
Date: 03/20/02


On Wed, 20 Mar 2002, Elie Rosenblum wrote:

>You're on the right track. The right thing to do is have two variables
>on each descriptor:
>  .callback: Function pointer to a nanny type function
>  .state: Used like it is now, but instead of representing full
>          state, a callback can use it to represent a substate so
>          each subsystem can combine multiple situations into a
>          single callback.

Or maybe the only state you need is what "command_interpreter()" the person
is currently using. Although it'd be better to make that a stack and give
it 'return value' capabilities, for generic 'y/n' states.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



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