#include <properties.h>#include <moving.h>#include <defines.h>#include <language.h>
gehe zum Quellcode dieser Datei
Funktionen | |
| void | create () |
| void | init () |
| int | naschen (string str) |
Variablen | |
| inherit std | thing |
| void create | ( | ) |
Definiert in Zeile 10 der Datei tuete.c.
Benutzt AddId(), create(), FEMALE, P_AUTOLOADOBJ, P_GENDER, P_LONG, P_NAME, P_NEVERDROP, P_NOBUY, P_NODROP, P_SHORT, P_WEIGHT und SetProp().
00011 { 00012 if (!clonep(this_object())) return; 00013 ::create() ; 00014 00015 SetProp( P_SHORT, "Eine Tuete Bonbons" ) ; 00016 SetProp( P_LONG, "Eine magische Bonbontuete. So oft Du auch hineingreifst, sie wird niemals leer\n" 00017 + "und enthaelt immer eine bunte Mischung.\n"); 00018 00019 SetProp( P_WEIGHT, 0 ) ; 00020 SetProp( P_NOBUY, 1) ; 00021 SetProp( P_NODROP, "Nein, Du willst doch nicht dieses Geschenk weggeben !?\n"); 00022 SetProp( P_NEVERDROP, 1) ; 00023 SetProp( P_NAME, "Tuete") ; 00024 SetProp( P_GENDER, FEMALE ) ; 00025 AddId( ({ "bonbontuete","tuete", "bonbons" }) ) ; 00026 SetProp(P_AUTOLOADOBJ, 1); 00027 00028 }

| void init | ( | ) |
| int naschen | ( | string | str | ) |
Definiert in Zeile 37 der Datei tuete.c.
Benutzt notify_fail(), PL und WER.
00038 { 00039 notify_fail("Wohinein moechtest Du greifen ?\n"); 00040 if ( str != "tuete" && str != "in tuete" && str != "bonbons" && str != "in bonbontuete") 00041 return 0; 00042 write("Du greifst in Deine Tuete und holst ein Bonbon heraus.\n"); 00043 say( PL->name(WER,2) + " holt ein Bonbon aus einer Tuete.\n"); 00044 clone_object("obj/misc/bonbon")->move(PL); 00045 return 1; 00046 }

1.6.3