blob: 7cb7388aae3dfcd2a16417c587ca74f671f48cee [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// living/comm.h -- communication module properties for Livings
4//
5// $Id: comm.h,v 3.3 2000/02/09 15:56:25 Padreic Exp $
6
7#ifndef __LIVING_COMM_H__
8#define __LIVING_COMM_H__
9
10#include <break_string.h>
11
12// Flags fuer ReceiveMsg().
13// The BS-Flags MUST always be equal to the one defined for break_string!
14#define MSG_BS_LEAVE_LFS BS_LEAVE_MY_LFS //1
15#define MSG_BS_SINGLE_SPACE BS_SINGLE_SPACE //2
16#define MSG_BS_BLOCK BS_BLOCK //4
17#define MSG_BS_NO_PARINDENT BS_NO_PARINDENT //8
18#define MSG_BS_INDENT_ONCE BS_INDENT_ONCE //16
19#define MSG_BS_PREP_INDENT BS_PREPEND_INDENT //32
20// Flags < 1024 (2^10) reserviert fuer BS
21#define MSG_DONT_BUFFER 1024
22#define MSG_DONT_STORE 2048
23#define MSG_DONT_WRAP 4096
24#define MSG_DONT_IGNORE 8192
Bugfix427a5812022-01-07 15:41:24 +010025#define MSG_ALL_SENSES 16384 // all relevant senses, not one of them
MG Mud User88f12472016-06-24 23:31:02 +020026// Flags < 1048576 (2^20) reserviert fuer Flags
27#define MSG_ALL_BS_FLAGS (BS_LEAVE_MY_LFS | BS_SINGLE_SPACE | BS_BLOCK\
28 | BS_NO_PARINDENT | BS_INDENT_ONCE\
29 |BS_PREPEND_INDENT)
30#define MSG_ALL_FLAGS (MSG_DONT_BUFFER | MSG_DONT_STORE | MSG_DONT_WRAP\
Bugfix427a5812022-01-07 15:41:24 +010031 | MSG_DONT_IGNORE | MSG_ALL_SENSES | MSG_ALL_BS_FLAGS)
MG Mud User88f12472016-06-24 23:31:02 +020032
33// Nachrichtentypen, Werte ab 2^20
34#define MT_UNKNOWN 0
35#define MT_LOOK 1048576
36#define MT_LISTEN 2097152
37#define MT_FEEL 4194304
38#define MT_TASTE 8388608
39#define MT_SMELL 16777216
40#define MT_MAGIC 33554432
41#define MT_NOTIFICATION 67108864
42#define MT_COMM 134217728
43#define MT_FAR 268435456
44#define MT_DEBUG 536870912
45#define MT_NEWS 1073741824
46
47// Aktionen
48// Bei MA_UNKNOWN wird die Aktion aus query_verb() geraten. Wenn das nicht
49// existiert, bleibt die Aktion MA_UNKNOWN.
50#define MA_UNKNOWN 0
51#define MA_PUT "wirf"
52#define MA_TAKE "nimm"
Bugfix1450fbd2022-10-05 23:03:44 +020053#define MA_GIVE "gib"
MG Mud User88f12472016-06-24 23:31:02 +020054#define MA_MOVE_IN "move_in"
55#define MA_MOVE_OUT "move_out"
56#define MA_MOVE "move"
57#define MA_FIGHT "toete"
58#define MA_WIELD "zuecke"
59#define MA_UNWIELD "stecke"
60#define MA_WEAR "trage"
61#define MA_UNWEAR "ziehe"
62#define MA_EAT "iss"
63#define MA_DRINK "trinke"
64#define MA_SPELL "zaubere"
65#define MA_LOOK "untersuche"
66#define MA_LISTEN "lausche"
67#define MA_FEEL "taste"
68#define MA_SMELL "rieche"
69#define MA_SENSE "erspueren"
70#define MA_READ "lies"
71#define MA_USE "benutze"
72#define MA_SAY "sage"
73#define MA_REMOVE "remove"
74#define MA_CHANNEL "ebenen"
75#define MA_EMOTE "emote"
76#define MA_SHOUT "rufe"
77#define MA_SHOUT_SEFUN "shout"
Zesstra9b7a9dc2022-02-10 12:59:07 +010078#define MA_TEAMRUF "teamruf"
MG Mud User88f12472016-06-24 23:31:02 +020079#define MA_TELL "teilemit"
80
81// Rueckgabewerte von ReceiveMsg()
82#define MSG_DELIVERED 1
83#define MSG_BUFFERED 2
84#define MSG_FAILED -1
85#define MSG_IGNORED -2
86#define MSG_VERB_IGN -3
87#define MSG_MUD_IGN -4
88#define MSG_SENSE_BLOCK -5
89#define MSG_BUFFER_FULL -6
90
91#endif // __LIVING_COMM_H__
92
93#ifdef NEED_PROTOTYPES
94
95#ifndef __LIVING_COMM_H_PROTO__
96#define __LIVING_COMM_H_PROTO__
97
98public varargs int ReceiveMsg(string msg, int msg_type, string msg_action,
99 string msg_prefix, object origin);
Bugfixb1d9b4d2021-09-14 20:07:04 +0200100public int ReceiveNotify(string msg, string action = 0);
MG Mud User88f12472016-06-24 23:31:02 +0200101
102#endif // __LIVING_COMM_H_PROTO__
103
104#endif // NEED_PROTOYPES
105