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.20 by root, Sat Sep 16 22:06:17 2006 UTC vs.
Revision 1.21 by root, Sat Sep 16 22:24:12 2006 UTC

20 20
21 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at crossfire-devel@real-time.com
22*/ 22*/
23 23
24/* 24/*
25 * The mapstruct is allocated each time a new map is opened. 25 * The maptile is allocated each time a new map is opened.
26 * It contains pointers (very indirectly) to all objects on the map. 26 * It contains pointers (very indirectly) to all objects on the map.
27 */ 27 */
28 28
29#ifndef MAP_H 29#ifndef MAP_H
30#define MAP_H 30#define MAP_H
274 * almost certainly break various features. You may think 274 * almost certainly break various features. You may think
275 * it is safe to look at width and height values directly 275 * it is safe to look at width and height values directly
276 * (or even through the macros), but doing so will completely 276 * (or even through the macros), but doing so will completely
277 * break map tiling. 277 * break map tiling.
278 */ 278 */
279ACC_CLASS (mapstruct) 279ACC_CLASS (maptile)
280struct mapstruct:zero_initialised, attachable < mapstruct > 280struct maptile : zero_initialised, attachable<maptile>
281{ 281{
282 struct mapstruct *ACC (RW, next); /* Next map, linked list */ 282 maptile *ACC (RW, next); /* Next map, linked list */
283 char *ACC (RO, tmpname); /* Name of temporary file */ 283 char *ACC (RO, tmpname); /* Name of temporary file */
284 char *ACC (RO, name); /* Name of map as given by its creator */ 284 char *ACC (RO, name); /* Name of map as given by its creator */
285 struct region *ACC (RW, region); /* What jurisdiction in the game world this map is ruled by 285 struct region *ACC (RW, region); /* What jurisdiction in the game world this map is ruled by
286 * points to the struct containing all the properties of 286 * points to the struct containing all the properties of
287 * the region */ 287 * the region */
323 uint64 ACC (RW, shopmin); /* minimum price a shop will trade for */ 323 uint64 ACC (RW, shopmin); /* minimum price a shop will trade for */
324 uint64 ACC (RW, shopmax); /* maximum price a shop will offer */ 324 uint64 ACC (RW, shopmax); /* maximum price a shop will offer */
325 char *ACC (RO, msg); /* Message map creator may have left */ 325 char *ACC (RO, msg); /* Message map creator may have left */
326 char *ACC (RO, maplore); /* Map lore information */ 326 char *ACC (RO, maplore); /* Map lore information */
327 char *tile_path[4]; /* path to adjoining maps */ 327 char *tile_path[4]; /* path to adjoining maps */
328 struct mapstruct *tile_map[4]; /* Next map, linked list */ 328 maptile *tile_map[4]; /* Next map, linked list */
329 char ACC (RW, path)[HUGE_BUF]; /* Filename of the map */ 329 char ACC (RW, path)[HUGE_BUF]; /* Filename of the map */
330}; 330};
331 331
332/* This is used by get_rangevector to determine where the other 332/* This is used by get_rangevector to determine where the other
333 * creature is. get_rangevector takes into account map tiling, 333 * creature is. get_rangevector takes into account map tiling,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines