MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // room/exits.h -- exit specific defines |
| 4 | // |
| 5 | // $Id: exits.h 9477 2016-02-19 21:17:51Z Zesstra $ |
| 6 | |
| 7 | #ifndef __ROOM_EXITS_H__ |
| 8 | #define __ROOM_EXITS_H__ |
| 9 | |
| 10 | // Properties |
| 11 | |
| 12 | #define P_EXITS "exits" |
| 13 | #define P_SPECIAL_EXITS "special_exits" |
| 14 | #define P_HIDE_EXITS "hide_exits" |
| 15 | |
| 16 | #define P_BLOCK_MSG "block_msg" |
| 17 | |
| 18 | #endif // __ROOM_EXITS_H__ |
| 19 | |
| 20 | // Prototypes |
| 21 | #ifdef NEED_PROTOTYPES |
| 22 | |
| 23 | #ifndef __ROOM_EXITS_H_PROTO__ |
| 24 | #define __ROOM_EXITS_H_PROTO__ |
| 25 | |
| 26 | static mapping _set_exits(mapping map_ldfied) ; |
| 27 | static mapping _query_exits(); |
| 28 | static int _set_special_exits(mapping map_ldfied); |
| 29 | static mapping _query_special_exits(); |
| 30 | static string _MakePath(string str); |
| 31 | void AddExit(string|string* cmd, closure|string dest); |
| 32 | protected void _AddExit(string|string* cmd, string|closure room, |
| 33 | string message); |
| 34 | void RemoveExit(string|string* cmd); |
| 35 | void AddSpecialExit(string|string* cmd, string|closure functionname); |
| 36 | void RemoveSpecialExit(string|string* cmd); |
| 37 | varargs string GetExits( object viewer ); |
| 38 | int _normalfunction(); |
| 39 | |
| 40 | #endif // __ROOM_EXITS_H_PROTO__ |
| 41 | |
| 42 | #endif // NEED_PROTOTYPES |