… | |
… | |
184 | * this should be the one we fall back on as the default */ |
184 | * this should be the one we fall back on as the default */ |
185 | |
185 | |
186 | static region *default_region (); |
186 | static region *default_region (); |
187 | static region *find (const char *name); |
187 | static region *find (const char *name); |
188 | static region *find_fuzzy (const char *name); |
188 | static region *find_fuzzy (const char *name); |
|
|
189 | static region *read (object_thawer &f); |
189 | }; |
190 | }; |
190 | |
191 | |
191 | typedef object_vector<region, ®ion::index> regionvec; |
192 | typedef object_vector<region, ®ion::index> regionvec; |
192 | |
193 | |
193 | extern regionvec regions; |
194 | extern regionvec regions; |
… | |
… | |
354 | } |
355 | } |
355 | |
356 | |
356 | void make_map_floor (char **layout, char *floorstyle, random_map_params *RP); |
357 | void make_map_floor (char **layout, char *floorstyle, random_map_params *RP); |
357 | bool generate_random_map (random_map_params *RP); |
358 | bool generate_random_map (random_map_params *RP); |
358 | |
359 | |
|
|
360 | static maptile *find_async (const char *path, maptile *original = 0);//PERL |
359 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
361 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
360 | // async prefetch |
362 | static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL |
361 | static maptile *find_async (const char *path, maptile *original = 0);//PERL |
363 | MTH object *pick_random_object () const; |
362 | |
364 | |
363 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
365 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
364 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
366 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
365 | }; |
367 | }; |
366 | |
368 | |