… | |
… | |
1861 | sub generate_random_map { |
1861 | sub generate_random_map { |
1862 | my ($self, $rmp) = @_; |
1862 | my ($self, $rmp) = @_; |
1863 | |
1863 | |
1864 | my $lock = cf::lock_acquire "generate_random_map"; # the random map generator is NOT reentrant ATM |
1864 | my $lock = cf::lock_acquire "generate_random_map"; # the random map generator is NOT reentrant ATM |
1865 | |
1865 | |
1866 | # mit "rum" bekleckern, nicht |
|
|
1867 | $self->_create_random_map ( |
1866 | $self->_create_random_map ($rmp); |
1868 | $rmp, |
|
|
1869 | $rmp->{wall_name}, $rmp->{monsterstyle}, |
|
|
1870 | $rmp->{treasurestyle}, $rmp->{layoutstyle}, $rmp->{doorstyle}, $rmp->{decorstyle}, |
|
|
1871 | $rmp->{origin_map}, $rmp->{final_map}, $rmp->{this_map}, |
|
|
1872 | $rmp->{exit_on_final_map}, |
|
|
1873 | $rmp->{xsize}, $rmp->{ysize}, |
|
|
1874 | $rmp->{expand2x}, $rmp->{layoutoptions1}, $rmp->{layoutoptions2}, $rmp->{layoutoptions3}, |
|
|
1875 | $rmp->{symmetry}, $rmp->{difficulty}, $rmp->{difficulty_given}, $rmp->{difficulty_increase}, |
|
|
1876 | $rmp->{dungeon_level}, $rmp->{dungeon_depth}, $rmp->{decoroptions}, $rmp->{orientation}, |
|
|
1877 | $rmp->{origin_y}, $rmp->{origin_x}, $rmp->{random_seed}, $rmp->{total_map_hp}, |
|
|
1878 | $rmp->{map_layout_style}, $rmp->{treasureoptions}, $rmp->{symmetry_used}, |
|
|
1879 | (cf::region::find $rmp->{region}) |
|
|
1880 | ) |
|
|
1881 | } |
1867 | } |
1882 | |
1868 | |
1883 | =item cf::map->register ($regex, $prio) |
1869 | =item cf::map->register ($regex, $prio) |
1884 | |
1870 | |
1885 | Register a handler for the map path matching the given regex at the |
1871 | Register a handler for the map path matching the given regex at the |
… | |
… | |
3440 | |
3426 | |
3441 | cf::face::set_visibility $idx, $info->{visibility}; |
3427 | cf::face::set_visibility $idx, $info->{visibility}; |
3442 | cf::face::set_magicmap $idx, $info->{magicmap}; |
3428 | cf::face::set_magicmap $idx, $info->{magicmap}; |
3443 | cf::face::set_data $idx, 0, $info->{data32}, $info->{hash32}; |
3429 | cf::face::set_data $idx, 0, $info->{data32}, $info->{hash32}; |
3444 | cf::face::set_data $idx, 1, $info->{data64}, $info->{hash64}; |
3430 | cf::face::set_data $idx, 1, $info->{data64}, $info->{hash64}; |
|
|
3431 | cf::face::set_data $idx, 2, $info->{glyph} , $info->{glyph} ; |
3445 | |
3432 | |
3446 | cf::cede_to_tick; |
3433 | cf::cede_to_tick; |
3447 | } |
3434 | } |
3448 | |
3435 | |
3449 | while (my ($face, $info) = each %$faces) { |
3436 | while (my ($face, $info) = each %$faces) { |