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.7 2006/08/15 15:00:20 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 | |
… | |
… | |
169 | * function that does more of the work can hopefully be used to replace |
169 | * function that does more of the work can hopefully be used to replace |
170 | * lots of duplicate checks currently in the code. |
170 | * lots of duplicate checks currently in the code. |
171 | */ |
171 | */ |
172 | #define P_OUT_OF_MAP 0x100 /* This space is outside the map */ |
172 | #define P_OUT_OF_MAP 0x100 /* This space is outside the map */ |
173 | #define P_NEW_MAP 0x200 /* Coordinates passed result in a new tiled map */ |
173 | #define P_NEW_MAP 0x200 /* Coordinates passed result in a new tiled map */ |
|
|
174 | #define P_SAFE_MAP 0x400 /* If this is set the map is a safe map, |
|
|
175 | * that means, nothing harmful there will be done, |
|
|
176 | * like: bombs, potion usage, alchemy, spells |
|
|
177 | * this was introduced to make shops more safe |
|
|
178 | * and propably other maps */ |
174 | |
179 | |
175 | #if 0 |
180 | #if 0 |
176 | /* These go away with new movement code - can't do such simplistic |
181 | /* These go away with new movement code - can't do such simplistic |
177 | * checks anymore |
182 | * checks anymore |
178 | */ |
183 | */ |
… | |
… | |
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 */ |