#include <cave_map_generator.hpp>
Classes | |
struct | cave_map_generator_job |
Public Member Functions | |
cave_map_generator (const config &game_config) | |
std::string | name () const |
Returns a string identifying the generator by name. More... | |
std::string | config_name () const |
Return a friendly name for the generator used to differentiate between different configs of the same generator. More... | |
std::string | create_map (utils::optional< uint32_t > randomseed={}) |
Creates a new map and returns it. More... | |
config | create_scenario (utils::optional< uint32_t > randomseed={}) |
Public Member Functions inherited from map_generator | |
virtual | ~map_generator () |
virtual bool | allow_user_config () const |
Returns true if the map generator has an interactive screen, which allows the user to modify how the generator behaves. More... | |
virtual void | user_config () |
Display the interactive screen, which allows the user to modify how the generator behaves. More... | |
Private Member Functions | |
bool | on_board (const map_location &loc) const |
Definition at line 26 of file cave_map_generator.hpp.
cave_map_generator::cave_map_generator | ( | const config & | game_config | ) |
Definition at line 34 of file cave_map_generator.cpp.
|
virtual |
Return a friendly name for the generator used to differentiate between different configs of the same generator.
Implements map_generator.
Definition at line 49 of file cave_map_generator.cpp.
|
virtual |
Creates a new map and returns it.
args may contain arguments to the map generator.
Implements map_generator.
Definition at line 72 of file cave_map_generator.cpp.
References create_scenario().
|
virtual |
Reimplemented from map_generator.
Definition at line 78 of file cave_map_generator.cpp.
References cave_map_generator::cave_map_generator_job::res_.
Referenced by create_map().
|
inlinevirtual |
Returns a string identifying the generator by name.
The name should not contain spaces.
Implements map_generator.
Definition at line 31 of file cave_map_generator.hpp.
|
inlineprivate |
Definition at line 90 of file cave_map_generator.hpp.
References height_, width_, map_location::x, and map_location::y.
|
private |
Definition at line 95 of file cave_map_generator.hpp.
|
private |
Definition at line 97 of file cave_map_generator.hpp.
|
private |
Definition at line 95 of file cave_map_generator.hpp.
|
private |
Definition at line 102 of file cave_map_generator.hpp.
Referenced by cave_map_generator::cave_map_generator_job::cave_map_generator_job().
|
private |
Definition at line 102 of file cave_map_generator.hpp.
Referenced by cave_map_generator::cave_map_generator_job::cave_map_generator_job().
|
private |
Definition at line 98 of file cave_map_generator.hpp.
Referenced by on_board().
|
private |
Definition at line 95 of file cave_map_generator.hpp.
|
private |
Definition at line 95 of file cave_map_generator.hpp.
|
private |
Definition at line 98 of file cave_map_generator.hpp.
|
private |
Definition at line 95 of file cave_map_generator.hpp.
Referenced by passage_path_calculator::cost().
|
private |
Definition at line 98 of file cave_map_generator.hpp.
Referenced by on_board(), and cave_map_generator::cave_map_generator_job::translate_x().