blob: d2674fb8ae442568863d8d09c37022fe6e4dcc73 [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
25// Flags < 1048576 (2^20) reserviert fuer Flags
26#define MSG_ALL_BS_FLAGS (BS_LEAVE_MY_LFS | BS_SINGLE_SPACE | BS_BLOCK\
27 | BS_NO_PARINDENT | BS_INDENT_ONCE\
28 |BS_PREPEND_INDENT)
29#define MSG_ALL_FLAGS (MSG_DONT_BUFFER | MSG_DONT_STORE | MSG_DONT_WRAP\
30 | MSG_DONT_IGNORE | MSG_ALL_BS_FLAGS)
31
32// Nachrichtentypen, Werte ab 2^20
33#define MT_UNKNOWN 0
34#define MT_LOOK 1048576
35#define MT_LISTEN 2097152
36#define MT_FEEL 4194304
37#define MT_TASTE 8388608
38#define MT_SMELL 16777216
39#define MT_MAGIC 33554432
40#define MT_NOTIFICATION 67108864
41#define MT_COMM 134217728
42#define MT_FAR 268435456
43#define MT_DEBUG 536870912
44#define MT_NEWS 1073741824
45
46// Aktionen
47// Bei MA_UNKNOWN wird die Aktion aus query_verb() geraten. Wenn das nicht
48// existiert, bleibt die Aktion MA_UNKNOWN.
49#define MA_UNKNOWN 0
50#define MA_PUT "wirf"
51#define MA_TAKE "nimm"
52#define MA_MOVE_IN "move_in"
53#define MA_MOVE_OUT "move_out"
54#define MA_MOVE "move"
55#define MA_FIGHT "toete"
56#define MA_WIELD "zuecke"
57#define MA_UNWIELD "stecke"
58#define MA_WEAR "trage"
59#define MA_UNWEAR "ziehe"
60#define MA_EAT "iss"
61#define MA_DRINK "trinke"
62#define MA_SPELL "zaubere"
63#define MA_LOOK "untersuche"
64#define MA_LISTEN "lausche"
65#define MA_FEEL "taste"
66#define MA_SMELL "rieche"
67#define MA_SENSE "erspueren"
68#define MA_READ "lies"
69#define MA_USE "benutze"
70#define MA_SAY "sage"
71#define MA_REMOVE "remove"
72#define MA_CHANNEL "ebenen"
73#define MA_EMOTE "emote"
74#define MA_SHOUT "rufe"
75#define MA_SHOUT_SEFUN "shout"
Zesstra9b7a9dc2022-02-10 12:59:07 +010076#define MA_TEAMRUF "teamruf"
MG Mud User88f12472016-06-24 23:31:02 +020077#define MA_TELL "teilemit"
78
79// Rueckgabewerte von ReceiveMsg()
80#define MSG_DELIVERED 1
81#define MSG_BUFFERED 2
82#define MSG_FAILED -1
83#define MSG_IGNORED -2
84#define MSG_VERB_IGN -3
85#define MSG_MUD_IGN -4
86#define MSG_SENSE_BLOCK -5
87#define MSG_BUFFER_FULL -6
88
89#endif // __LIVING_COMM_H__
90
91#ifdef NEED_PROTOTYPES
92
93#ifndef __LIVING_COMM_H_PROTO__
94#define __LIVING_COMM_H_PROTO__
95
96public varargs int ReceiveMsg(string msg, int msg_type, string msg_action,
97 string msg_prefix, object origin);
98
99#endif // __LIVING_COMM_H_PROTO__
100
101#endif // NEED_PROTOYPES
102