1 | /* |
1 | /* |
2 | * static char *rcsid_define_h = |
2 | * static char *rcsid_define_h = |
3 | * "$Id: map.h,v 1.7 2006/08/15 15:00:20 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. |
… | |
… | |
169 | * function that does more of the work can hopefully be used to replace |
174 | * function that does more of the work can hopefully be used to replace |
170 | * lots of duplicate checks currently in the code. |
175 | * lots of duplicate checks currently in the code. |
171 | */ |
176 | */ |
172 | #define P_OUT_OF_MAP 0x100 /* This space is outside the map */ |
177 | #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 */ |
178 | #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 */ |
|
|
179 | |
179 | |
180 | #if 0 |
180 | #if 0 |
181 | /* 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 |
182 | * checks anymore |
182 | * checks anymore |
183 | */ |
183 | */ |