… | |
… | |
253 | maptile *ACC (RW, tile_map[4]); /* Next map, linked list */ |
253 | maptile *ACC (RW, tile_map[4]); /* Next map, linked list */ |
254 | shstr ACC (RW, path); /* Filename of the map */ |
254 | shstr ACC (RW, path); /* Filename of the map */ |
255 | int ACC (RW, max_nrof); // maximum nrof of any single item on a mapspace |
255 | int ACC (RW, max_nrof); // maximum nrof of any single item on a mapspace |
256 | uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace |
256 | uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace |
257 | |
257 | |
258 | MTH sint8 darklevel () const |
258 | // the maptile:: is neccessary here for the perl interface to work |
|
|
259 | MTH sint8 darklevel (sint8 outside = maptile::outdoor_darkness) const |
259 | { |
260 | { |
260 | return clamp (outdoor ? darkness + outdoor_darkness : darkness, 0, MAX_DARKNESS); |
261 | return clamp (outdoor ? darkness + outside : darkness, 0, MAX_DARKNESS); |
261 | } |
262 | } |
|
|
263 | |
|
|
264 | static void adjust_daylight (); |
262 | |
265 | |
263 | MTH void activate (); |
266 | MTH void activate (); |
264 | MTH void deactivate (); |
267 | MTH void deactivate (); |
265 | |
268 | |
266 | // allocates all (empty) mapspace |
269 | // allocates all (empty) mapspace |
… | |
… | |
270 | |
273 | |
271 | MTH void fix_auto_apply (); |
274 | MTH void fix_auto_apply (); |
272 | MTH void do_decay_objects (); |
275 | MTH void do_decay_objects (); |
273 | MTH void update_buttons (); |
276 | MTH void update_buttons (); |
274 | MTH int change_map_light (int change); |
277 | MTH int change_map_light (int change); |
275 | static void change_all_map_light (int change); //PERL |
|
|
276 | MTH void set_darkness_map (); |
|
|
277 | MTH int estimate_difficulty () const; |
278 | MTH int estimate_difficulty () const; |
278 | |
279 | |
279 | MTH void play_sound (faceidx sound, int x, int y) const; |
280 | MTH void play_sound (faceidx sound, int x, int y) const; |
280 | |
281 | |
281 | // set the given flag on all objects in the map |
282 | // set the given flag on all objects in the map |