#include "/obj/tools/roommaker/roommaker.h"
gehe zum Quellcode dieser Datei
Funktionen | |
| static void | getshort (string str) |
| static void | getshort2 () |
| static void | short_ready () |
| static void | short_redisplay () |
| static void | short_save () |
| static void | delete_short () |
| static void | delete_short2 () |
| static void | getlong () |
| static void | store_short (string str) |
| static void | store_short2 (string str) |
| static void | store_long () |
| static void | show_long () |
| static void | normal_ready () |
| static void | insert_comment () |
| static void | store_comment () |
| static void | show_comment () |
Variablen | |
| static string | rshort |
| static string * | rlong |
| static string * | kommentar |
| static string | menustring |
| static void delete_short | ( | ) | [static] |
Definiert in Zeile 94 der Datei descriptions.c.
Benutzt gotogetstring().
00095 { 00096 write("No lines in buffer!\n"); 00097 gotogetstring(); 00098 }

| static void delete_short2 | ( | ) | [static] |
Definiert in Zeile 102 der Datei descriptions.c.
Benutzt gotogetstring().
00103 { 00104 write("Short description deleted. Please enter a new short description!\n"); 00105 gotogetstring(); 00106 }

| static void getlong | ( | ) | [static] |
Definiert in Zeile 110 der Datei descriptions.c.
Benutzt arrayprint(), ClearText(), gotogettext(), menustring, rlong, rshort, SCREEN_WIDTH, SetLabel() und SetText().
Wird benutzt von store_short().
00111 { 00112 SetLabel("lenmax",SCREEN_WIDTH); 00113 SetLabel("ready","store_long"); 00114 SetLabel("show_file","show_long"); 00115 SetLabel("menustring",menustring); 00116 SetLabel("menu","menu"); 00117 SetLabel("nextwrite",""); 00118 if(sizeof(rlong) == 1 && rlong[0] == rshort + ".") 00119 { 00120 write("Please enter the long description of the room (help with \"~h\")!\n") 00121 ; 00122 ClearText(); 00123 } 00124 else 00125 { 00126 SetText(rlong); 00127 write( 00128 "----- Actual long description: -----------------------------------------------\n" + 00129 arrayprint(rlong) + 00130 "------------------------------------------------------------------------------\n" + 00131 "Please edit the long description of the room (help with \"~h\")!\n"); 00132 } 00133 gotogettext(); 00134 }


| static void getshort | ( | string | str | ) | [static] |
Definiert in Zeile 18 der Datei descriptions.c.
Benutzt gotogetstring(), input_to() und SetLabel().
00019 { 00020 if(str == "n") 00021 { 00022 write("Please enter the new filename: "); 00023 input_to("getrightname"); 00024 return; 00025 } 00026 if(str == "y") 00027 { 00028 SetLabel("prompt","]"); 00029 SetLabel("nostring","short_ready"); 00030 SetLabel("abort","abortx"); 00031 SetLabel("undo","short_ready"); 00032 SetLabel("ready","short_ready"); 00033 SetLabel("redisplay","short_redisplay"); 00034 SetLabel("delete","delete_short"); 00035 SetLabel("save_file","short_save"); 00036 SetLabel("insert_string","store_short"); 00037 write("Please enter a short description of the room (help with \"~h\")!\n"); 00038 return gotogetstring(); 00039 } 00040 write("Is this correct?? (y/n) "); 00041 input_to("getshort"); 00042 }

| static void getshort2 | ( | ) | [static] |
Definiert in Zeile 48 der Datei descriptions.c.
Benutzt gotogetstring(), rshort und SetLabel().
00049 { 00050 SetLabel("prompt","]"); 00051 SetLabel("nostring","short_ready"); 00052 SetLabel("abort","abortx"); 00053 SetLabel("undo","gotomenu"); 00054 SetLabel("ready","gotomenu"); 00055 SetLabel("redisplay","short_redisplay"); 00056 SetLabel("delete","delete_short2"); 00057 SetLabel("save_file","normal_save_string"); 00058 SetLabel("insert_string","store_short2"); 00059 write( 00060 "----- Actual short description: -----------------------------------------------\n" + 00061 rshort + "\n" + 00062 "-------------------------------------------------------------------------------\n" + 00063 "Please edit the short description of the room (help with \"~h\")!\n"); 00064 return gotogetstring(); 00065 }

| static void insert_comment | ( | ) | [static] |
Definiert in Zeile 191 der Datei descriptions.c.
Benutzt arrayprint(), ClearText(), gotogettext(), kommentar, menustring, SCREEN_WIDTH, SetLabel() und SetText().
00192 { 00193 SetLabel("lenmax",SCREEN_WIDTH - 3); 00194 SetLabel("ready","store_comment"); 00195 SetLabel("show_file","show_comment"); 00196 SetLabel("menustring",menustring); 00197 SetLabel("menu","menu"); 00198 SetLabel("nextwrite",""); 00199 if(!sizeof(kommentar)) 00200 { 00201 write("Please enter a comment to the room (help with \"~h\")!\n") 00202 ; 00203 ClearText(); 00204 } 00205 else 00206 { 00207 SetText(kommentar); 00208 write( 00209 "----- Actual comment: ------------------------------------------------------\n" + 00210 arrayprint(kommentar) + 00211 "----------------------------------------------------------------------------\n" + 00212 "Please edit the comment to the room (help with \"~h\")!\n"); 00213 } 00214 gotogettext(); 00215 }

| static void normal_ready | ( | ) | [static] |
Definiert in Zeile 183 der Datei descriptions.c.
Benutzt input_to() und menustring.
00184 { 00185 write(menustring); 00186 input_to("menu"); 00187 }

| static void short_ready | ( | ) | [static] |
Definiert in Zeile 69 der Datei descriptions.c.
Benutzt input_to().
00070 { 00071 write("You need to enter a short description!\n]"); 00072 input_to("getstring"); 00073 }

| static void short_redisplay | ( | ) | [static] |
Definiert in Zeile 77 der Datei descriptions.c.
Benutzt input_to().
00078 { 00079 write("There is nothing to redisplay. Please enter the short description!\n]") 00080 ; 00081 input_to("getstring"); 00082 }

| static void short_save | ( | ) | [static] |
Definiert in Zeile 86 der Datei descriptions.c.
Benutzt input_to().
00087 { 00088 write("You can't save this file until now. You need first to configure something\nPlease enter the short description!\n]"); 00089 input_to("getstring"); 00090 }

| static void show_comment | ( | ) | [static] |
Definiert in Zeile 227 der Datei descriptions.c.
Benutzt EditText(), file_print(), gotogettext() und kommentar.
00228 { 00229 string *dummy; 00230 dummy = kommentar; 00231 kommentar = EditText(); 00232 if(!sizeof(kommentar)) kommentar = dummy; 00233 write(file_print()); 00234 kommentar = dummy; 00235 gotogettext(); 00236 }

| static void show_long | ( | ) | [static] |
Definiert in Zeile 170 der Datei descriptions.c.
Benutzt EditText(), file_print(), input_to() und rlong.
00171 { 00172 string *dummy; 00173 dummy = rlong; 00174 rlong = EditText(); 00175 if(!sizeof(rlong)) rlong = dummy; 00176 write(file_print() + "]"); 00177 rlong = dummy; 00178 input_to("gettext"); 00179 }

| static void store_comment | ( | ) | [static] |
Definiert in Zeile 219 der Datei descriptions.c.
Benutzt EditText(), gotomenu() und kommentar.

| static void store_long | ( | ) | [static] |
Definiert in Zeile 159 der Datei descriptions.c.
Benutzt arrayprint(), Creature(), EditText(), input_to(), menustring, P_INT_LONG, rlong und rshort.
00160 { 00161 if(!sizeof(rlong)) rlong = ({rshort + "."}); 00162 if(sizeof(EditText())) rlong = EditText(); 00163 Creature()->SetProp(P_INT_LONG,arrayprint(EditText())); 00164 write(menustring); 00165 input_to("menu"); 00166 }

| static void store_short | ( | string | str | ) | [static] |
Definiert in Zeile 140 der Datei descriptions.c.
Benutzt Creature(), getlong(), P_INT_SHORT, rlong und rshort.
00141 { 00142 rshort = str; 00143 Creature()->SetProp(P_INT_SHORT,rshort); 00144 rlong = ({str + "."}); 00145 getlong(); 00146 }

| static void store_short2 | ( | string | str | ) | [static] |
Definiert in Zeile 150 der Datei descriptions.c.
Benutzt Creature(), gotomenu(), P_INT_SHORT und rshort.
00151 { 00152 rshort = str; 00153 Creature()->SetProp(P_INT_SHORT,rshort); 00154 gotomenu(); 00155 }

string* kommentar [static] |
Definiert in Zeile 13 der Datei descriptions.c.
Wird benutzt von insert_comment(), show_comment() und store_comment().
string menustring [static] |
Definiert in Zeile 14 der Datei descriptions.c.
Wird benutzt von getlong(), insert_comment(), normal_ready() und store_long().
string* rlong [static] |
Definiert in Zeile 12 der Datei descriptions.c.
Wird benutzt von getlong(), show_long(), store_long() und store_short().
string rshort [static] |
Definiert in Zeile 11 der Datei descriptions.c.
Wird benutzt von getlong(), getshort2(), store_long(), store_short() und store_short2().
1.6.3