… | |
… | |
299 | |
299 | |
300 | MTH object *insert (object *op, int x, int y, object *originator = 0, int flags = 0); |
300 | MTH object *insert (object *op, int x, int y, object *originator = 0, int flags = 0); |
301 | |
301 | |
302 | MTH void touch () { last_access = runtime; } |
302 | MTH void touch () { last_access = runtime; } |
303 | |
303 | |
|
|
304 | MTH bool tile_available (int dir, bool load = true); |
|
|
305 | |
304 | // find the map that is at coordinate x|y relative to this map |
306 | // find the map that is at coordinate x|y relative to this map |
305 | // TODO: need a better way than passing by reference |
307 | // TODO: need a better way than passing by reference |
306 | // TODO: make perl interface |
308 | // TODO: make perl interface |
307 | maptile *xy_find (sint16 &x, sint16 &y); |
309 | maptile *xy_find (sint16 &x, sint16 &y); |
308 | |
310 | |
… | |
… | |
319 | } |
321 | } |
320 | |
322 | |
321 | void make_map_floor (char **layout, char *floorstyle, random_map_params *RP); |
323 | void make_map_floor (char **layout, char *floorstyle, random_map_params *RP); |
322 | bool generate_random_map (random_map_params *RP); |
324 | bool generate_random_map (random_map_params *RP); |
323 | |
325 | |
324 | static maptile *find_async (const char *path, maptile *original = 0);//PERL |
326 | static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL |
325 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
327 | static maptile *find_sync (const char *path, maptile *original = 0);//PERL |
326 | static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL |
328 | static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL |
327 | MTH object *pick_random_object () const; |
329 | MTH object *pick_random_object () const; |
328 | |
330 | |
329 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |
331 | mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } |