blob: 803b3193881e48e958ed942ef7352eb55cf69570 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// player/comm.h -- communication module properties
4//
5// $Id: comm.h,v 3.3 2000/02/09 15:56:25 Padreic Exp $
6
7#ifndef __PLAYER_COMM_H__
8#define __PLAYER_COMM_H__
9
10// living/comm.h brauchen wir auch.
11#include <living/comm.h>
12
13// properties
14
15#define P_INTERMUD "intermud" // Does she listen to it ?
16#define P_BUFFER "buffer" // ignore-, tell-buffer
17#define P_DEAF "deaf" // Taubheit
18#define P_PERM_STRING "perm_string" // Fuer Sprachflueche
19#define P_MESSAGE_BEEP "message_beep" // wenn gesetzt
20 // Anzahl der Sekunden dazwischen
21#define P_MESSAGE_PREPEND "message_prepend"
22// Will der Magier MT_DEBUG sehen?
23#define P_WIZ_DEBUG "std_p_wizdebug"
24
25#define MESSAGE_BEEP "\007"
26
27// definitions for Message()
28
29#define MSGFLAG_CHANNEL 0x0001 // messages from channeld.c
30#define MSGFLAG_CHIST 0x0002
31#define MSGFLAG_SOUL 0x0004 // messages from soul.c
32#define MSGFLAG_REMOTE 0x0008 // remote emotes
33#define MSGFLAG_SHOUT 0x0010 // communication commands
34#define MSGFLAG_TELL 0x0020
35#define MSGFLAG_SAY 0x0040
36#define MSGFLAG_WHISPER 0x0080
37#define MSGFLAG_MECHO 0x0100
38#define MSGFLAG_RTELL 0x0200 // tell from other mud
39
40#define MAX_SAVED_MESSAGES 50
41#define MAX_SAVED_CHATS 20
42
43// Was geht in den Kobold?
44#define MSGFLAG_CACHE (MSGFLAG_TELL | MSGFLAG_REMOTE | MSGFLAG_WHISPER | MSGFLAG_RTELL)
45
46#define MSGFLAG_DEAFCHK (MSGFLAG_SHOUT | MSGFLAG_TELL | MSGFLAG_SAY | MSGFLAG_WHISPER | MSGFLAG_CHANNEL | MSGFLAG_RTELL)
47
48// Rueckgabewerte von Message()
49#define MESSAGE_OK 1 // alles klar
50#define MESSAGE_CACHE 0 // Meldung steht im Kobold
51#define MESSAGE_IGNORE_YOU -1 // Meldung/Sender wird ignoriert
52#define MESSAGE_IGNORE_VERB -2
53#define MESSAGE_IGNORE_MUD -3
54#define MESSAGE_DEAF -4 // Empfaenger hoert nicht zu
55#define MESSAGE_CACHE_FULL -5 // Kobold kann nichts mehr merken
56
57// Flags fuer Statusreports
58#define DO_REPORT_HP 0x1
59#define DO_REPORT_SP 0x2
60#define DO_REPORT_POISON 0x4
61#define DO_REPORT_WIMPY 0x8
62#define DO_REPORT_WIMPY_DIR 0x10
63
64#endif // __PLAYER_COMM_H__
65
66#ifdef NEED_PROTOTYPES
67
68#ifndef __PLAYER_COMM_H_PROTO__
69#define __PLAYER_COMM_H_PROTO__
70
71// prototypes
72
73protected varargs int _recv(object ob, string message,
74 int flag, string indent);
75
76varargs int Message(string msg, int flag, string indent,
77 string cname, mixed sender);
78
79protected void status_report(int type, mixed val);
80protected void _notify(string msg, string action);
81
82#endif // __PLAYER_COMM_H_PROTO__
83
84#endif // NEED_PROTOYPES
85