1 | /* |
1 | /* |
2 | * static char *rcsid_define_h = |
2 | * static char *rcsid_define_h = |
3 | * "$Id: map.h,v 1.6 2006/08/13 17:16:02 elmex Exp $"; |
3 | * "$Id: map.h,v 1.8 2006/08/15 17:35:50 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
155 | * arch_blocked and functions that examine the return value. |
155 | * arch_blocked and functions that examine the return value. |
156 | */ |
156 | */ |
157 | |
157 | |
158 | #define AB_NO_PASS 0x04 |
158 | #define AB_NO_PASS 0x04 |
159 | /*#define P_PASS_THRU 0x08 *//* */ |
159 | /*#define P_PASS_THRU 0x08 *//* */ |
|
|
160 | #define P_SAFE 0x08 /* If this is set the map is a safe map, |
|
|
161 | * that means, nothing harmful there will be done, |
|
|
162 | * like: bombs, potion usage, alchemy, spells |
|
|
163 | * this was introduced to make shops more safe |
|
|
164 | * and propably other maps */ |
160 | #define P_IS_ALIVE 0x10 /* something alive is on this space */ |
165 | #define P_IS_ALIVE 0x10 /* something alive is on this space */ |
161 | #define P_NO_CLERIC 0x20 /* no clerical spells cast here */ |
166 | #define P_NO_CLERIC 0x20 /* no clerical spells cast here */ |
162 | #define P_NEED_UPDATE 0x40 /* this space is out of date */ |
167 | #define P_NEED_UPDATE 0x40 /* this space is out of date */ |
163 | #define P_NO_ERROR 0x80 /* Purely temporary - if set, update_position |
168 | #define P_NO_ERROR 0x80 /* Purely temporary - if set, update_position |
164 | * does not complain if the flags are different. |
169 | * does not complain if the flags are different. |
… | |
… | |
285 | */ |
290 | */ |
286 | uint32 fixed_resettime:1; /* if true, reset time is not affected by |
291 | uint32 fixed_resettime:1; /* if true, reset time is not affected by |
287 | * players entering/exiting map |
292 | * players entering/exiting map |
288 | */ |
293 | */ |
289 | uint32 unique:1; /* if set, this is a per player unique map */ |
294 | uint32 unique:1; /* if set, this is a per player unique map */ |
|
|
295 | uint32 safe_map:1; /* if set, this map doesn't allow using magic or harmful stuff in any way */ |
290 | uint32 templatemap:1; /* if set, this is a template map */ |
296 | uint32 templatemap:1; /* if set, this is a template map */ |
291 | uint32 nosmooth:1; /* if set the content of this map has smoothlevel=0 forced*/ |
297 | uint32 nosmooth:1; /* if set the content of this map has smoothlevel=0 forced*/ |
292 | sint32 timeout; /* swapout is set to this */ |
298 | sint32 timeout; /* swapout is set to this */ |
293 | sint32 swap_time; /* When it reaches 0, the map will be swapped out */ |
299 | sint32 swap_time; /* When it reaches 0, the map will be swapped out */ |
294 | sint16 players; /* How many plares are on this level right now */ |
300 | sint16 players; /* How many plares are on this level right now */ |