MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // thing/moving.h -- object moving |
| 4 | // |
| 5 | // $Id: moving.h 8892 2014-08-04 19:48:28Z Zesstra $ |
| 6 | |
| 7 | #ifndef __THING_MOVING_H__ |
| 8 | #define __THING_MOVING_H__ |
| 9 | |
| 10 | // properties |
| 11 | #define P_NEVERDROP "neverdrop" |
| 12 | #define P_NODROP "nodrop" // can't be dropped |
| 13 | #define P_NOGET "noget" // can't be taken |
| 14 | |
| 15 | #define P_NOINSERT_MSG "noinsert_msg" // Fehlermeldung bei ME_CANT_BE_INSERTED |
| 16 | #define P_NOLEAVE_MSG "noleave_msg" // Fehlermeldung bei ME_CANT_LEAVE_ENV |
| 17 | #define P_ENV_TOO_HEAVY_MSG "env_too_heavy_msg" // Fehlermeldung bei ME_TOO_HEAVY_FOR_ENV |
| 18 | #define P_TOO_MANY_MSG "too_many_msg" // Fehlermeldung bei ME_TOO_MANY_OBJECTS |
| 19 | #define P_TOO_HEAVY_MSG "too_heavy_msg" // Fehlermeldung bei ME_TOO_HEAVY |
| 20 | |
| 21 | #define P_LAST_MOVE "last_move" |
| 22 | #define P_LAST_CONTENT_CHANGE "last_content_change" |
| 23 | |
| 24 | #define P_SENSITIVE "sensitive" // should be registered as sensitive object |
| 25 | |
| 26 | |
| 27 | #endif // __THING_MOVING_H__ |
| 28 | |
| 29 | #ifdef NEED_PROTOTYPES |
| 30 | |
| 31 | #ifndef __THING_MOVING_H_PROTO__ |
| 32 | #define __THING_MOVING_H_PROTO__ |
| 33 | |
| 34 | // prototypes |
| 35 | // move the object from current position to dest using the method |
| 36 | public varargs int move(object|string dest, int method); |
| 37 | |
| 38 | // remove the object return 1 for successful destruction |
| 39 | public varargs int remove(int silent); |
| 40 | |
| 41 | #endif // __THING_MOVING_H_PROTO__ |
| 42 | |
| 43 | #endif // // NEED_PROTOYPES |