ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/map.h
(Generate patch)

Comparing deliantra/server/include/map.h (file contents):
Revision 1.1 by root, Fri Feb 3 07:12:49 2006 UTC vs.
Revision 1.5 by root, Tue Mar 7 13:44:43 2006 UTC

1/* 1/*
2 * static char *rcsid_define_h = 2 * static char *rcsid_define_h =
3 * "$Id: map.h,v 1.1 2006/02/03 07:12:49 root Exp $"; 3 * "$Id: map.h,v 1.5 2006/03/07 13:44:43 root 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
248 * to be the same as name*/ 248 * to be the same as name*/
249 const char *msg; /* the description of the region */ 249 const char *msg; /* the description of the region */
250 uint32 counter; /* A generic counter for holding temporary data. */ 250 uint32 counter; /* A generic counter for holding temporary data. */
251 sint8 fallback; /* whether, in the event of a region not existing, 251 sint8 fallback; /* whether, in the event of a region not existing,
252 * this should be the one we fall back on as the default */ 252 * this should be the one we fall back on as the default */
253 char *jailmap; /*where a player that is arrested in this region should be imprisoned.*/
254 sint16 jailx, jaily; /* The coodinates in jailmap to which the player should be sent. */
253} region; 255} region;
254 256
255 257
256typedef struct shopitem { 258typedef struct shopitem {
257 const char *name; /* name of the item in question, null if it is the default item */ 259 const char *name; /* name of the item in question, null if it is the default item */
270 * (or even through the macros), but doing so will completely 272 * (or even through the macros), but doing so will completely
271 * break map tiling. 273 * break map tiling.
272 */ 274 */
273typedef struct mapdef { 275typedef struct mapdef {
274 struct mapdef *next; /* Next map, linked list */ 276 struct mapdef *next; /* Next map, linked list */
275 char path[HUGE_BUF]; /* Filename of the map */
276 char *tmpname; /* Name of temporary file */ 277 char *tmpname; /* Name of temporary file */
277 char *name; /* Name of map as given by its creator */ 278 char *name; /* Name of map as given by its creator */
278 region *region; /* What jurisdiction in the game world this map is ruled by 279 region *region; /* What jurisdiction in the game world this map is ruled by
279 * points to the struct containing all the properties of 280 * points to the struct containing all the properties of
280 * the region */ 281 * the region */
315 char *shoprace; /* the preffered race of the local shopkeeper */ 316 char *shoprace; /* the preffered race of the local shopkeeper */
316 double shopgreed; /* how much our shopkeeper overcharges */ 317 double shopgreed; /* how much our shopkeeper overcharges */
317 uint64 shopmin; /* minimum price a shop will trade for */ 318 uint64 shopmin; /* minimum price a shop will trade for */
318 uint64 shopmax; /* maximum price a shop will offer */ 319 uint64 shopmax; /* maximum price a shop will offer */
319 char *msg; /* Message map creator may have left */ 320 char *msg; /* Message map creator may have left */
321 char *maplore; /* Map lore information */
320 char *tile_path[4]; /* path to adjoining maps */ 322 char *tile_path[4]; /* path to adjoining maps */
321 struct mapdef *tile_map[4]; /* Next map, linked list */ 323 struct mapdef *tile_map[4]; /* Next map, linked list */
324 char path[HUGE_BUF]; /* Filename of the map */
322} mapstruct; 325} mapstruct;
323 326
324/* This is used by get_rangevector to determine where the other 327/* This is used by get_rangevector to determine where the other
325 * creature is. get_rangevector takes into account map tiling, 328 * creature is. get_rangevector takes into account map tiling,
326 * so you just can not look the the map coordinates and get the 329 * so you just can not look the the map coordinates and get the
336 int distance_y; 339 int distance_y;
337 int direction; 340 int direction;
338 object *part; 341 object *part;
339} rv_vector; 342} rv_vector;
340 343
344extern void (*load_original_map_callback)(mapstruct *map);
345extern void (*load_temporary_map_callback)(mapstruct *map);
346extern void (*clean_temporary_map_callback)(mapstruct *map);
347
341#endif 348#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines