#include <mapgen.hpp>

Public Member Functions | |
| virtual | ~map_generator () |
| virtual bool | allow_user_config () const =0 |
| Returns true iff the map generator has an interactive screen, which allows the user to modify how the generator behaves. | |
| virtual void | user_config (display &disp)=0 |
| Display the interactive screen, which allows the user to modify how the generator behaves. | |
| virtual std::string | name () const =0 |
| Returns a string identifying the generator by name. | |
| virtual std::string | config_name () const =0 |
| Return a friendly name for the generator used to differentiate between different configs of the same generator. | |
| virtual std::string | create_map (const std::vector< std::string > &args)=0 |
| Creates a new map and returns it. | |
| virtual config | create_scenario (const std::vector< std::string > &args) |
Definition at line 36 of file mapgen.hpp.
| virtual map_generator::~map_generator | ( | ) | [inline, virtual] |
Definition at line 39 of file mapgen.hpp.
| virtual bool map_generator::allow_user_config | ( | ) | const [pure virtual] |
Returns true iff the map generator has an interactive screen, which allows the user to modify how the generator behaves.
Implemented in cave_map_generator, and default_map_generator.
Referenced by gui2::teditor_generate_map::do_settings().

| virtual std::string map_generator::config_name | ( | ) | const [pure virtual] |
Return a friendly name for the generator used to differentiate between different configs of the same generator.
Implemented in cave_map_generator, and default_map_generator.
Referenced by gui2::teditor_generate_map::update_current_generator_label().

| virtual std::string map_generator::create_map | ( | const std::vector< std::string > & | args | ) | [pure virtual] |
Creates a new map and returns it.
args may contain arguments to the map generator.
Implemented in cave_map_generator, and default_map_generator.
Referenced by create_scenario(), and editor::context_manager::generate_map_dialog().

| config map_generator::create_scenario | ( | const std::vector< std::string > & | args | ) | [virtual] |
Reimplemented in cave_map_generator, and default_map_generator.
Definition at line 42 of file mapgen.cpp.
References create_map().

| virtual std::string map_generator::name | ( | ) | const [pure virtual] |
Returns a string identifying the generator by name.
The name should not contain spaces.
Implemented in cave_map_generator, and default_map_generator.
Referenced by gui2::teditor_generate_map::update_current_generator_label().

| virtual void map_generator::user_config | ( | display & | disp | ) | [pure virtual] |
Display the interactive screen, which allows the user to modify how the generator behaves.
(This function will not be called if allow_user_config() returns false).
Implemented in cave_map_generator, and default_map_generator.
Referenced by gui2::teditor_generate_map::do_settings().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:31 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |