#include <properties.h>
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
| #define | TP this_player() |
| #define | ME this_object() |
Funktionen | |
| void | create () |
| int | rein (string str) |
| int | _normalfunction () |
Variablen | |
| inherit p service loco std | mailcabin |
| swap_channels private nosave mapping | store_player_props |
| #define ME this_object() |
Definiert in Zeile 7 der Datei mailcabin.c.
| #define TP this_player() |
Definiert in Zeile 6 der Datei mailcabin.c.
| int _normalfunction | ( | ) |
Definiert in Zeile 51 der Datei mailcabin.c.
Benutzt m_delete(), ME, P_AWAY, P_IGNORE, store_player_props, TP und x.
00051 { 00052 mixed x,stor; 00053 int res; 00054 00055 if (environment(TP)!=ME) 00056 return 0; 00057 res=::_normalfunction(); 00058 if (environment(TP)==ME || !query_once_interactive(TP)) 00059 return res; 00060 if (!pointerp(stor=store_player_props[getuid(TP)])) 00061 stor=({({}),0,0,0}); 00062 TP->SetProp(P_IGNORE,stor[0]); 00063 TP->SetProp(P_AWAY,stor[1]); 00064 if (!stor[2] && 0) 00065 TP->ChannelAdmin("ein"); 00066 if (!stor[3]) 00067 TP->_flush_cache("aus"); 00068 efun::m_delete(store_player_props,getuid(TP)); 00069 return res; 00070 }

| void create | ( | ) |
Definiert in Zeile 14 der Datei mailcabin.c.
Benutzt create(), set_next_reset() und store_player_props.
00014 { 00015 if (!clonep() || object_name(this_object()) == __FILE__[0..<3]) { 00016 set_next_reset(-1); 00017 return; 00018 } 00019 ::create(); 00020 store_player_props=([]); 00021 }

| int rein | ( | string | str | ) |
Definiert in Zeile 23 der Datei mailcabin.c.
Benutzt ME, P_AWAY, P_BUFFER, P_IGNORE, P_SWAP_CHANNELS, rein(), store_player_props, TP und x.
00023 { 00024 mixed x,away; 00025 int res; 00026 00027 if (environment(TP)==ME) 00028 return 0; 00029 res=::rein(str); 00030 if (environment(TP)!=ME || !query_once_interactive(TP)) 00031 return res; 00032 if (store_player_props[getuid(TP)]) 00033 return res; 00034 if (!pointerp(x=(mixed)TP->QueryProp(P_IGNORE))) 00035 x=({}); 00036 away=(string)TP->QueryProp(P_AWAY); 00037 store_player_props[getuid(TP)]=({x[0..], 00038 away, 00039 TP->QueryProp(P_SWAP_CHANNELS), 00040 TP->QueryProp(P_BUFFER)}); 00041 if (member(x,"ruf")<0) x+=({"ruf"}); 00042 if (member(x,"rufe")<0) x+=({"rufe"}); 00043 TP->SetProp(P_IGNORE,x); 00044 if (!away) 00045 TP->SetProp(P_AWAY,"Liest oder schreibt Mail."); 00046 // TP->ChannelAdmin("aus"); 00047 TP->_flush_cache("ein"); 00048 return res; 00049 }

Definiert in Zeile 3 der Datei mailcabin.c.
| swap_channels private nosave mapping store_player_props |
Definiert in Zeile 12 der Datei mailcabin.c.
Wird benutzt von _normalfunction(), create() und rein().
1.6.3