noscript.c-Dateireferenz

#include <properties.h>
#include <moving.h>
Include-Abhängigkeitsdiagramm für noscript.c:

gehe zum Quellcode dieser Datei

Funktionen

void create ()
void init ()
varargs string GetExits (object viewer)
varargs int raus (string s)

Variablen

inherit std room
static string x
static string * xx

Dokumentation der Funktionen

void create (  ) 

Definiert in Zeile 8 der Datei noscript.c.

Benutzt AddCmd(), create(), P_INT_LONG, P_LIGHT, SetProp(), x und xx.

00008               {
00009   ::create();
00010   x="----------";
00011   xx=({
00012     "/d/ebene/room/ak_str7",
00013     "/d/ebene/room/dra_str3",
00014     "/d/ebene/room/hp_str2c",
00015     "/d/ebene/room/o_wa1d",
00016     "/d/ebene/room/waldweg8"
00017   });
00018   SetProp(P_LIGHT,1);
00019   SetProp(P_INT_LONG,
00020 "Dieser Raum ist fuer Leute, die TF spielen lassen.\n\
00021 Es gibt nur einen Weg heraus...\n");
00022   AddCmd("","raus",1);
00023 }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

varargs string GetExits ( object  viewer  ) 

Definiert in Zeile 33 der Datei noscript.c.

Benutzt x.

Wird benutzt von int_long(), int_short() und show_exits().

00033                                        {
00034   return sprintf("Es gibt einen sichtbaren Ausgang: %s.\n",x);
00035 }

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

void init (  ) 

Definiert in Zeile 25 der Datei noscript.c.

Benutzt i, init() und x.

00025             {
00026   int i;
00027   
00028   ::init();
00029   for (i=0;i<10;i++)
00030     x[i]='a'+random(26);
00031 }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

varargs int raus ( string  s  ) 

Definiert in Zeile 37 der Datei noscript.c.

Benutzt M_GO, move(), notify_fail(), x und xx.

00037                            {
00038   if (query_verb()!=x)
00039     return 0;
00040   notify_fail("Etwas hat nicht funktioniert. Bitte verstaendige einen Magier.\n");
00041   return ((this_player()->move(xx[random(sizeof(xx))],M_GO))>0);
00042 }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:


Variablen-Dokumentation

inherit std room

Definiert in Zeile 1 der Datei noscript.c.

string x [static]
string* xx [static]

Definiert in Zeile 6 der Datei noscript.c.

Wird benutzt von create(), raus(), startup_telnet_negs() und telnet_neg().

Erzeugt am Thu Jun 3 14:41:05 2010 für MorgenGrauen Mudlib von  doxygen 1.6.3