MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // 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" |
| 34 | #define P_VISUALBELL "visualbell" |
| 35 | #define P_LOCALCMDS "localcmds" |
| 36 | #define P_CLOCKMSG "clockmsg" |
| 37 | #define P_TIMEZONE "timezone" |
| 38 | #define P_SHOWEMAIL "showemail" |
| 39 | |
| 40 | #define P_LAST_LOGIN "last_login" |
| 41 | #define P_LAST_LOGOUT "last_logout" |
| 42 | #define P_DAILY_PLAYTIME "daily_playtime" |
| 43 | #define P_IGNORE "ignore" |
| 44 | #define P_SHOW_EXITS "show_exits" |
| 45 | #define P_WANTS_TO_LEARN "wants_to_learn" |
| 46 | #define P_AUTOLOADOBJ "autoloadobj" |
| 47 | #define P_AUTOLOAD "autoload" |
| 48 | #define P_MAILADDR "mailaddr" |
| 49 | #define P_HOMEPAGE "homepage" |
| 50 | #define P_ICQ "icq" |
| 51 | #define P_MESSENGER "messenger" |
| 52 | #define P_LOCATION "location" |
| 53 | |
| 54 | #define P_FOLLOW_SILENT "follow_silent" |
| 55 | |
| 56 | #ifndef P_INVIS |
| 57 | #define P_INVIS "invis" |
| 58 | #endif |
| 59 | |
| 60 | #define P_SECOND "second" |
| 61 | #define P_SECOND_MARK "second_mark" |
| 62 | #define P_SECOND_LIST "second_list" |
| 63 | #define P_MUD_NEWBIE "_lib_mud_newbie" // not played a mud before? |
| 64 | |
| 65 | #define P_TESTPLAYER "testplayer" |
| 66 | #define P_ALLOWED_SHADOW "allowed_shadow" |
| 67 | |
| 68 | #define P_START_HOME "start_home" |
| 69 | #define P_PRAY_ROOM "_lib_p_prayroom" |
| 70 | |
| 71 | #define P_SHELL_VERSION "shell_version" |
| 72 | |
| 73 | #define P_CMSG "clonemsg" |
| 74 | #define P_DMSG "destmsg" |
| 75 | #define P_CLONE_MSG "clone_msg" |
| 76 | #define P_DESTRUCT_MSG "destruct_msg" |
| 77 | |
| 78 | #define P_CARRIED_VALUE "carried" |
| 79 | |
| 80 | #define P_PROMPT "prompt" |
| 81 | |
| 82 | #define P_SCREENSIZE "screensize" |
| 83 | #define P_MORE_FLAGS "more_flags" |
| 84 | |
| 85 | #define P_NO_ASCII_ART "no_ascii_art" |
| 86 | |
| 87 | #define P_LAST_QUIT "last_quit" |
| 88 | |
| 89 | #define P_READ_NEWS "read_news" |
| 90 | |
| 91 | #define P_NEEDED_QP "needed_qp" |
| 92 | |
| 93 | //TODO: Remove - Property is not needed any more. |
| 94 | #define P_TELNET_KEEP_ALIVE "send_telnet_keep_alive" |
| 95 | |
| 96 | #endif // __PLAYER_BASE_H__ |
| 97 | |
| 98 | #ifdef NEED_PROTOTYPES |
| 99 | |
| 100 | #ifndef __PLAYER_BASE_H_PROTO__ |
| 101 | #define __PLAYER_BASE_H_PROTO__ |
| 102 | |
| 103 | // prototypes |
| 104 | |
| 105 | void smart_log(string myname, string str); |
| 106 | int QueryGuest(); |
| 107 | int invis(string inform); |
| 108 | int vis(string inform); |
| 109 | |
| 110 | varargs static void stop_heart_beats(mixed obs); |
| 111 | static void restart_heart_beats(); |
| 112 | |
| 113 | nomask int query_hc_play(); |
| 114 | varargs nomask void set_hc_play(string str, int val); |
| 115 | string SetDefaultHome(string str); |
| 116 | protected string SetDefaultPrayRoom(string str); |
| 117 | |
| 118 | void save_me(mixed value_items); |
| 119 | nomask mixed query_real_name(); |
| 120 | protected void call_notify_player_change(int rein); |
| 121 | |
| 122 | #endif // __PLAYER_BASE_H_PROTO__ |
| 123 | |
| 124 | #endif// NEED_PROTOYPES |