#include <properties.h>#include <language.h>#include <moving.h>#include <defines.h>
gehe zum Quellcode dieser Datei
Funktionen | |
| create () | |
| init () | |
| nimm (str) | |
| move (target, method) | |
| get (targ) | |
Variablen | |
| inherit std | thing |
| create | ( | ) |
Definiert in Zeile 8 der Datei buchautomat.c.
Benutzt AddId(), create(), NEUTER, P_ARTICLE, P_GENDER, P_LONG, P_NAME, P_SHORT und SetProp().
00009 { 00010 ::create(); 00011 SetProp(P_SHORT,"Ein Handbuch fuer Anfaenger"); 00012 SetProp(P_LONG,"Ein Handbuch fuer Anfaenger.\n"); 00013 SetProp(P_NAME,"Buch"); 00014 AddId(({"handbuch","buch","anfaengerbuch"})); 00015 SetProp(P_GENDER,NEUTER); 00016 SetProp(P_ARTICLE,1); 00017 }

| get | ( | targ | ) |
Definiert in Zeile 50 der Datei buchautomat.c.
00051 { 00052 if (!targ || !interactive(targ) || targ != this_player()) 00053 return 0; 00054 if (present("erste schritte", this_player())) 00055 { 00056 write("Du hast doch schon ein Buch...\n"); 00057 return 0; 00058 } 00059 clone_object("/obj/anfaengerbuch")->move(targ,M_GET); 00060 write("Du nimmst ein Buch. Sofort erscheint auf unerklaerliche Weise ein neues.\n"); 00061 say(targ->name(WER)+" nimmt ein Buch.\n",targ); 00062 return 1; 00063 }
| init | ( | ) |
Definiert in Zeile 19 der Datei buchautomat.c.
| move | ( | target | , | |
| method | ||||
| ) |
Definiert in Zeile 42 der Datei buchautomat.c.
00043 { 00044 if (method&M_GET&&living(target)) 00045 return get(target); 00046 else 00047 return ::move(target,method); 00048 }

| nimm | ( | str | ) |
Definiert in Zeile 24 der Datei buchautomat.c.
Benutzt name, notify_fail(), P_IDS und QueryProp().
00025 { 00026 string was; 00027 notify_fail("Was willst Du nehmen ? Syntax: NIMM <ETWAS>.\n"); 00028 if(!str || !id(str)) return 0; 00029 if(sscanf(str,"%s",was)!=1) return 0; 00030 if(member(QueryProp(P_IDS),was)<0) return 0; 00031 if(present("erste schritte",this_player())) 00032 { 00033 write("Du hast doch schon ein Buch...\n"); 00034 return 1; 00035 } 00036 say(this_player()->name() + " nimmt ein Buch.\n",this_player()); 00037 write("Du nimmst ein Buch. Sofort erscheint auf unerklaerliche Weise ein neues.\n"); 00038 clone_object("/obj/anfaengerbuch")->move(this_player()); 00039 return 1; 00040 }

| inherit std thing |
Definiert in Zeile 1 der Datei buchautomat.c.
1.6.3