#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 | 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 30 of file mapgen.hpp.
virtual map_generator::~map_generator | ( | ) | [inline, virtual] |
Definition at line 33 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.
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.
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.
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().
config map_generator::create_scenario | ( | const std::vector< std::string > & | args | ) | [virtual] |
Reimplemented in cave_map_generator, and default_map_generator.
Definition at line 47 of file mapgen.cpp.
References create_map().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |