#include <properties.h>#include <language.h>
gehe zum Quellcode dieser Datei
Funktionen | |
| void | create () |
| int | schleck (string str) |
Variablen | |
| inherit std | thing |
| void create | ( | ) |
Definiert in Zeile 5 der Datei lolli.c.
Benutzt AddCmd(), AddId(), create(), MALE, P_GENDER, P_LONG, P_NAME, P_SHORT, P_VALUE, P_WEIGHT und SetProp().
00006 { 00007 // Laeden erwarten Short und Value in der Blueprint. 00008 SetProp(P_SHORT, "Ein Lolli"); 00009 SetProp(P_VALUE, 5); 00010 00011 if (!clonep(this_object())) return; 00012 ::create(); 00013 SetProp(P_SHORT, "Ein Lolli"); 00014 SetProp(P_NAME, "Lolli"); 00015 SetProp(P_GENDER, MALE); 00016 SetProp(P_LONG, "Ein leckerer Lolli, Du kannst ihn schlecken.\n"); 00017 AddId("lolli"); 00018 SetProp(P_WEIGHT, 10); 00019 AddCmd( ({"schleck","schlecke","leck","lecke"}), "schleck" ); 00020 }

| int schleck | ( | string | str | ) |
Definiert in Zeile 22 der Datei lolli.c.
Benutzt name, notify_fail(), QueryPossPronoun() und WEM.
00023 { 00024 notify_fail("Was moechtest Du schlecken?\n"); 00025 if (!str || !id(str)) return 0; 00026 write("Du schleckst an Deinem Lolli. Er schmeckt ausgezeichnet.\n"); 00027 say(this_player()->name()+" schleckt an "+this_player()->QueryPossPronoun(this_object(), WEM)+" Lolli.\n"); 00028 return 1; 00029 }

1.6.3