#include <thing/properties.h>#include <wizlevels.h>#include <language.h>#include <moving.h>#include <attributes.h>#include <combat.h>#include <defines.h>#include <ansi.h>#include <udp.h>#include <new_skills.h>
gehe zum Quellcode dieser Datei
Funktionen | |
| void | create () |
| static int | wurzel_an (string arg) |
| static int | wurzel_aus (string arg) |
| int | wurzel_info (string arg) |
| static mixed * | _query_localcmds () |
| varargs int | move (mixed dest, int method, string dir, string textout, string textin) |
| static int | new_quit () |
Variablen | |
| inherit std shells | magier |
| static int | _wurzel |
| static mixed* _query_localcmds | ( | ) | [static] |
Definiert in Zeile 92 der Datei baum.c.
Benutzt _query_localcmds() und ARCH_LVL.
00092 { 00093 return ::_query_localcmds() + ({ 00094 ({ "schlag" , "wurzel_an" ,1,ARCH_LVL }), 00095 ({ "loes" , "wurzel_aus" ,1,ARCH_LVL }), 00096 ({ "wurzelinfo", "wurzel_info",0,ARCH_LVL }) 00097 }); 00098 }

| void create | ( | ) |
Definiert in Zeile 30 der Datei baum.c.
Benutzt _wurzel, create() und set_next_reset().
00031 { 00032 if (!clonep() || object_name(this_object()) == __FILE__[0..<3]) { 00033 set_next_reset(-1); 00034 return; 00035 } 00036 00037 ::create(); 00038 _wurzel = -1; 00039 }

| varargs int move | ( | mixed | dest, | |
| int | method, | |||
| string | dir, | |||
| string | textout, | |||
| string | textin | |||
| ) |
Definiert in Zeile 100 der Datei baum.c.
Benutzt _wurzel, ME_TOO_HEAVY und move().
00102 { 00103 if( _wurzel == 0 ) { 00104 return ME_TOO_HEAVY; 00105 } 00106 if( _wurzel > 0 ) { _wurzel--; } 00107 return ::move( dest, method, dir, textout, textin ); 00108 }

| static int new_quit | ( | ) | [static] |
Definiert in Zeile 110 der Datei baum.c.
Benutzt _wurzel.
00110 { 00111 _wurzel = -1; 00112 return ::new_quit(); 00113 }
| static int wurzel_an | ( | string | arg | ) | [static] |
Definiert in Zeile 41 der Datei baum.c.
Benutzt _wurzel, count, Name(), notify_fail() und WER.
00041 { 00042 string num; 00043 int count; 00044 00045 if( this_object() != this_interactive() ) return 0; 00046 notify_fail( "WAS willst Du schlagen?\n" ); 00047 if( !arg || sscanf( arg, "wurzel%s", num ) == 0 ) return 0; 00048 00049 if( sscanf( num, " %d", count ) == 0 ) { 00050 notify_fail( "schage wurzel <zahl>\n" ); 00051 return 0; 00052 } 00053 00054 _wurzel = count; 00055 say( Name(WER) + " schlaegt hier Wurzeln.\n" ); 00056 write( "Du schlaegst nun Wurzeln.\n" ); 00057 return 1; 00058 }

| static int wurzel_aus | ( | string | arg | ) | [static] |
Definiert in Zeile 60 der Datei baum.c.
Benutzt _wurzel, FEMALE, Name(), notify_fail(), PLURAL, QueryPronoun(), WEN und WER.
00060 { 00061 00062 if( this_object() != this_interactive() ) return 0; 00063 notify_fail( "WAS willst du loesen?\n" ); 00064 if( !arg ) return 0; 00065 if( member( ({"wurzel","wurzeln"}), arg ) == -1 ) return 0; 00066 00067 _wurzel = -1; 00068 say( Name(WER) + " loest " + QueryPronoun(FEMALE,WEN,PLURAL) 00069 + " Wurzeln aus dem Boden.\n" ); 00070 write( "Du loest Deine Wurzeln aus dem Boden.\n" ); 00071 return 1; 00072 }

| int wurzel_info | ( | string | arg | ) |
Definiert in Zeile 74 der Datei baum.c.
Benutzt _wurzel.
00074 { 00075 if( this_object() != this_interactive() ) return 0; 00076 switch( _wurzel ) { 00077 case -1: 00078 write( "Deine Wurzeln sind lose.\n" ); 00079 break; 00080 case 0: 00081 write( "Deine Wurzeln sitzen fest.\n" ); 00082 break; 00083 case 1: 00084 write( "Noch eine Bewegung und Du sitzt fest.\n" ); 00085 break; 00086 default: 00087 printf( "Noch %d Bewegungen, und Du sitzt fest.\n", _wurzel ); 00088 } 00089 return 1; 00090 }
int _wurzel [static] |
Definiert in Zeile 28 der Datei baum.c.
Wird benutzt von create(), move(), new_quit(), wurzel_an(), wurzel_aus() und wurzel_info().
1.6.3