blob: d6fa88cb9f77cdd8e89017434c1571c0f995b1ab [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// player/base.h -- player base header
4//
5// $Id: base.h 8487 2013-05-21 19:15:52Z Zesstra $
6
7#ifndef __PLAYER_BASE_H__
8#define __PLAYER_BASE_H__
9
10// da dieses File vom Master inkludiert wird und dann die Standard-Include-
11// verzeichnisse noch nicht gesetzt sind, darf dieses File auch nur die abs.
12// Namen verwenden. *seufz*
13#include "/sys/player/can.h"
14#include "/sys/player/telnetneg.h"
15
16#define HAUSVERWALTER "/d/seher/haeuser/hausverwalter"
17
18// properties
19
20#define P_KILLS "playerkills"
21
22#define P_ZAP_MSG "zap_msg"
23#define P_AWAY "away"
24#define P_NO_TOPLIST "no_toplist"
25#define P_CALLED_FROM_IP "called_from_ip"
26#define P_MARRIED "married"
27#define P_SIBLINGS "siblings"
28#define P_RACE_DESCRIPTION "racedescr"
29#define P_RACESTRING "racestring"
30
31#define P_WAITFOR "waitfor"
32#define P_WAITFOR_REASON "waitfor_reason"
33#define P_WAITFOR_FLAGS "waitfor_flags"
MG Mud User88f12472016-06-24 23:31:02 +020034#define P_LOCALCMDS "localcmds"
35#define P_CLOCKMSG "clockmsg"
36#define P_TIMEZONE "timezone"
37#define P_SHOWEMAIL "showemail"
38
39#define P_LAST_LOGIN "last_login"
40#define P_LAST_LOGOUT "last_logout"
41#define P_DAILY_PLAYTIME "daily_playtime"
42#define P_IGNORE "ignore"
43#define P_SHOW_EXITS "show_exits"
44#define P_WANTS_TO_LEARN "wants_to_learn"
45#define P_AUTOLOADOBJ "autoloadobj"
46#define P_AUTOLOAD "autoload"
47#define P_MAILADDR "mailaddr"
48#define P_HOMEPAGE "homepage"
49#define P_ICQ "icq"
50#define P_MESSENGER "messenger"
51#define P_LOCATION "location"
52
53#define P_FOLLOW_SILENT "follow_silent"
54
55#ifndef P_INVIS
56#define P_INVIS "invis"
57#endif
58
59#define P_SECOND "second"
60#define P_SECOND_MARK "second_mark"
61#define P_SECOND_LIST "second_list"
62#define P_MUD_NEWBIE "_lib_mud_newbie" // not played a mud before?
63
64#define P_TESTPLAYER "testplayer"
65#define P_ALLOWED_SHADOW "allowed_shadow"
66
67#define P_START_HOME "start_home"
68#define P_PRAY_ROOM "_lib_p_prayroom"
69
70#define P_SHELL_VERSION "shell_version"
71
72#define P_CMSG "clonemsg"
73#define P_DMSG "destmsg"
74#define P_CLONE_MSG "clone_msg"
75#define P_DESTRUCT_MSG "destruct_msg"
76
77#define P_CARRIED_VALUE "carried"
78
79#define P_PROMPT "prompt"
80
81#define P_SCREENSIZE "screensize"
82#define P_MORE_FLAGS "more_flags"
83
84#define P_NO_ASCII_ART "no_ascii_art"
85
86#define P_LAST_QUIT "last_quit"
87
88#define P_READ_NEWS "read_news"
89
90#define P_NEEDED_QP "needed_qp"
91
MG Mud User88f12472016-06-24 23:31:02 +020092#endif // __PLAYER_BASE_H__
93
94#ifdef NEED_PROTOTYPES
95
96#ifndef __PLAYER_BASE_H_PROTO__
97#define __PLAYER_BASE_H_PROTO__
98
Zesstra9ea7e9a2021-11-01 11:33:34 +010099// not prototypes, but only used internally:
100// Flags for call_notify_player_change()
101#define CNP_FLAG_ENTER 0x1 // player enters mud
102#define CNP_FLAG_SLEEP 0x2 // player disconnects/sleeps
103#define CNP_FLAG_QUIT 0x4 // player quits or is removed
Zesstra9ea7e9a2021-11-01 11:33:34 +0100104
MG Mud User88f12472016-06-24 23:31:02 +0200105// prototypes
106
Arathorn3437e392016-08-26 22:41:39 +0200107void smart_log(string myname, string str, object obj);
MG Mud User88f12472016-06-24 23:31:02 +0200108int QueryGuest();
109int invis(string inform);
110int vis(string inform);
111
112varargs static void stop_heart_beats(mixed obs);
113static void restart_heart_beats();
114
115nomask int query_hc_play();
116varargs nomask void set_hc_play(string str, int val);
Bugfix25ac7422022-09-28 10:15:14 +0200117protected string SetDefaultHome(string str);
MG Mud User88f12472016-06-24 23:31:02 +0200118protected string SetDefaultPrayRoom(string str);
119
120void save_me(mixed value_items);
121nomask mixed query_real_name();
122protected void call_notify_player_change(int rein);
123
124#endif // __PLAYER_BASE_H_PROTO__
125
126#endif// NEED_PROTOYPES