#ifndef __SENDSYS_H__ #define __SENDSYS_H__ /* Special destinations for send message */ #define DEST_ALL (-32767) #define NOBODY (-32766) /* Value of x1 and x2 below if ignored */ /* Mode word for send_msg * bits 00 .. 06 : Contains pflag bit number. (space for 128 flags) * bits 07, 08 : Contains pflag mode * 00 = no pflag testing * 01 = send message if specified pflag is set. * 10 = send message if specified pflag is not set. * 11 = no pflag testing. * bits 09 .. 15 : Contains sflag bit number (space for 128 flags * bits 16, 17 : Sflag mode, see pflags. * bit 18 : Do not send message if quiiet bit is set. * bit 19 : Do not send if recipient is crippled. * bit 20 : Do not send if recipient is dumb. * bit 21 : Do not send if recipient is deaf. * bit 22 : Send message only if recipient is outdoors. * bit 23 : send message to everyone except the ones with nowiz * bit 24 : send message to everyone except the ones that have noslain on. * bit 25 : send message to all without noslain. * bit 26 : do not send message if recipient is blind * bit 27 : Send bracketed message. * bits 28..29 : unused. * bit 30 : send the message in color. * bit 31 : negate the whole test. */ #define MODE_P 0 /* Start of Pflag bits (7 bits space)*/ #define MODE_S 9 /* Start of SFlag bits (7 bits space)*/ /* Mode bits for send_msg */ #define MODE_FLAGS 0x7F /* ALL pflags */ #define MODE_PFLAG 0x80 #define MODE_NPFLAG 0x100 #define MODE_SFLAGS 0xFE00 /* All sflags */ #define MODE_SFLAG 0x10000 #define MODE_NSFLAG 0x20000 #define MODE_QUIET 0x40000 #define MODE_NOCRIP 0x80000 #define MODE_NODUMB 0x100000 #define MODE_NODEAF 0x200000 #define MODE_OUTDOORS 0x400000 #define MODE_NOWIZ 0x800000 #define MODE_NOSLAIN 0x1000000 #define MODE_NOBATTLE 0x2000000 #define MODE_NOBLIND 0x4000000 #define MODE_BRACKET 0x8000000 #define MODE_COLOR 0x40000000 #define MODE_NEG 0x80000000 #define MS(x) ((x)<<MODE_S) #define MP(x) ((x)<<MODE_P) void broad(char *mesg); void sillycom(char *txt); void sillytp(int per, char *msg); void send_g_msg(int destination, char *func(int plx, int arg, char *t), int arg, char *text); #ifdef VARGS void sendf(int destination,char *format,...); void gsendf(int destination, char *func(int plx, int arg, char *text), int arg, char *format,...); void send_msg(int destination, int mode, int min, int max, int x1, int x2, char *format,...); #else void sendf(); /* sendf(destination,format,arg1,arg2,...); */ void gsendf(); /* gsendf(destination,func,args,format,arg1,arg2,...); */ void send_msg(); /* send_msg(destintaion,mode,min,max,x1,x2,format,arg1...); */ #endif #endif /* Add nothing past this line... */