… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
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.de |
22 | */ |
22 | */ |
23 | |
23 | |
24 | /* |
24 | /* |
25 | * The maptile 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. |
… | |
… | |
229 | |
229 | |
230 | /* |
230 | /* |
231 | * Each map is in a given region of the game world and links to a region definiton, so |
231 | * Each map is in a given region of the game world and links to a region definiton, so |
232 | * they have to appear here in the headers, before the mapdef |
232 | * they have to appear here in the headers, before the mapdef |
233 | */ |
233 | */ |
234 | struct region |
234 | struct region : zero_initialised |
235 | { |
235 | { |
236 | struct region *next; /* pointer to next region, NULL for the last one */ |
236 | struct region *next; /* pointer to next region, NULL for the last one */ |
237 | const char *name; /* Shortend name of the region as maps refer to it */ |
237 | const char *name; /* Shortend name of the region as maps refer to it */ |
238 | const char *parent_name; /* |
238 | const char *parent_name; /* |
239 | * So that parent and child regions can be defined in |
239 | * So that parent and child regions can be defined in |
… | |
… | |
254 | sint8 fallback; /* whether, in the event of a region not existing, |
254 | sint8 fallback; /* whether, in the event of a region not existing, |
255 | * this should be the one we fall back on as the default */ |
255 | * this should be the one we fall back on as the default */ |
256 | char *jailmap; /*where a player that is arrested in this region should be imprisoned. */ |
256 | char *jailmap; /*where a player that is arrested in this region should be imprisoned. */ |
257 | sint16 jailx, jaily; /* The coodinates in jailmap to which the player should be sent. */ |
257 | sint16 jailx, jaily; /* The coodinates in jailmap to which the player should be sent. */ |
258 | }; |
258 | }; |
259 | |
|
|
260 | |
259 | |
261 | struct shopitems : zero_initialised |
260 | struct shopitems : zero_initialised |
262 | { |
261 | { |
263 | const char *name; /* name of the item in question, null if it is the default item */ |
262 | const char *name; /* name of the item in question, null if it is the default item */ |
264 | const char *name_pl; /* plural name */ |
263 | const char *name_pl; /* plural name */ |