--- deliantra/server/include/define.h 2007/08/12 05:59:24 1.68 +++ deliantra/server/include/define.h 2007/08/16 06:36:56 1.69 @@ -961,5 +961,49 @@ */ #define MAX_SOUND_DISTANCE 16 +#define LOG_CHANNEL "log" // the plain and ugly standard server log +#define INFO_CHANNEL "info" // lower_left box +#define SAY_CHANNEL "channel-say" +#define CHAT_CHANNEL "channel-chat" + +/* The following are the color flags passed to new_draw_info. + * + * We also set up some control flags + * + * NDI = New Draw Info + */ + +/* Color specifications - note these match the order in xutil.c */ +/* Note 2: Black, the default color, is 0. Thus, it does not need to + * be implicitly specified. + */ +#define NDI_BLACK 0 +#define NDI_WHITE 1 +#define NDI_NAVY 2 +#define NDI_RED 3 +#define NDI_ORANGE 4 +#define NDI_BLUE 5 /* Actually, it is Dodger Blue */ +#define NDI_DK_ORANGE 6 /* DarkOrange2 */ +#define NDI_GREEN 7 /* SeaGreen */ +#define NDI_LT_GREEN 8 /* DarkSeaGreen, which is actually paler */ + /* Than seagreen - also background color */ +#define NDI_GREY 9 +#define NDI_BROWN 10 /* Sienna */ +#define NDI_GOLD 11 +#define NDI_TAN 12 /* Khaki */ + +#define NDI_MAX_COLOR 12 /* Last value in */ +#define NDI_COLOR_MASK 0x1f /* Gives lots of room for expansion - we are */ + /* using an int anyways, so we have the space */ + /* to still do all the flags */ + +#define NDI_REPLY 0x20 // is a direct reply to a user command +#define NDI_NOCREATE 0x40 // do not create a tba if one doesn't exist +#define NDI_CLIENT_MASK 0x7f // what the client is allowed to see + +#define NDI_UNIQUE 0x1000 /* Print this out immediately, don't buffer */ +#define NDI_ALL 0x2000 /* Inform all players of this message */ +#define NDI_DEF 0x4000 // ignore colour for channel protocol + #endif /* DEFINE_H */