Re: send_to_charf, Take 2

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 07/09/01


George Greer wrote:
>
> Going that route I'd propose:
>
>   actf(int target, int flags, const char *format, ...);
>
> Due to various problems with the parameterization, I would recommend
> keeping send_to_char().

Works for me, since we'd want to keep that for a time anyways, the real
question is probably weather or not it should be depreciated.  You give
a good argument against.

> Where does the pointer of the person to send the
> message to go for a static string with actf?

Use format parameters.  The parameters get discarded in the string, but
they are used to indicate the placement of targets in the arg list.
Then, you narrow your target list to the following:

TO_CHAR, TO_NOTCHAR, TO_ROOM, TO_OUTDOOR, TO_ALL

They have the following meanings:

TO_CHAR = send to all chars listed in format string/args.
T0_NOTCHAR = send to everyone in the same room(s) as those listed except
for the listed chars.
TO_ROOM = send to the room of any of the chars listed (we could use
different format args here to specify objects or rooms directly).
TO_OUTDOOR/TO_ALL = The rather obvious meaning.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST