… | |
… | |
325 | bool generate_random_map (random_map_params *RP); |
325 | bool generate_random_map (random_map_params *RP); |
326 | |
326 | |
327 | static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL |
327 | static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL |
328 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
328 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
329 | static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL |
329 | static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL |
330 | MTH object *pick_random_object () const; |
330 | object *pick_random_object (rand_gen &gen = rndm) const; |
331 | |
331 | |
332 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
332 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
333 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
333 | mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } |
334 | }; |
334 | }; |
335 | |
335 | |