MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * thing.c fuer Objekte, die sicherheitsrelevant sind. |
| 3 | * Sollte von Dingen aus /secure oder Magiertools auf jeden |
| 4 | * Fall statt /std/thing inherited werden. |
| 5 | * |
| 6 | * Der Unterschied zu /std/thing besteht darin, potentiell unsichere |
| 7 | * Auswertungen wie process_string() (@@fun@@) zu verhindern - ansonsten |
| 8 | * koennte jemand Magiern Code unterschieben. |
| 9 | * |
| 10 | */ |
| 11 | #pragma strong_types |
| 12 | #pragma save_types |
| 13 | #pragma no_clone |
| 14 | #pragma no_shadow |
| 15 | #pragma range_check |
| 16 | #pragma pedantic |
| 17 | |
| 18 | inherit "/std/thing"; |
| 19 | #include <properties.h> |
| 20 | |
| 21 | // int secure_level() // ist nun in simul_efun |
| 22 | |
| 23 | varargs string long(int mode) |
| 24 | { |
| 25 | return funcall(QueryProp(P_LONG)); |
| 26 | } |
| 27 | |
| 28 | string short() |
| 29 | { |
| 30 | string sh; |
| 31 | if( sh=QueryProp(P_SHORT) ) |
| 32 | return funcall(sh)+".\n"; |
| 33 | } |
| 34 | |