#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 (boost::optional< boost::uint32_t > randomseed=boost::none) |
Creates a new map and returns it. More... | |
config | create_scenario (boost::optional< boost::uint32_t > randomseed=boost::none) |
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 (CVideo &v) |
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 28 of file cave_map_generator.hpp.
cave_map_generator::cave_map_generator | ( | const config & | game_config | ) |
Definition at line 33 of file cave_map_generator.cpp.
References cfg_, height_, village_density_, and width_.
|
virtual |
Return a friendly name for the generator used to differentiate between different configs of the same generator.
Implements map_generator.
Definition at line 52 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 75 of file cave_map_generator.cpp.
References create_scenario().
|
virtual |
Reimplemented from map_generator.
Definition at line 81 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 33 of file cave_map_generator.hpp.
|
inlineprivate |
Definition at line 92 of file cave_map_generator.hpp.
References height_, width_, map_location::x, and map_location::y.
|
private |
Definition at line 97 of file cave_map_generator.hpp.
|
private |
Definition at line 99 of file cave_map_generator.hpp.
Referenced by cave_map_generator().
|
private |
Definition at line 97 of file cave_map_generator.hpp.
|
private |
Definition at line 104 of file cave_map_generator.hpp.
|
private |
Definition at line 104 of file cave_map_generator.hpp.
|
private |
Definition at line 100 of file cave_map_generator.hpp.
Referenced by cave_map_generator(), and on_board().
|
private |
Definition at line 97 of file cave_map_generator.hpp.
|
private |
Definition at line 97 of file cave_map_generator.hpp.
|
private |
Definition at line 100 of file cave_map_generator.hpp.
Referenced by cave_map_generator().
|
private |
Definition at line 97 of file cave_map_generator.hpp.
Referenced by passage_path_calculator::cost().
|
private |
Definition at line 100 of file cave_map_generator.hpp.
Referenced by cave_map_generator(), and on_board().