55 virtual std::string
name()
const = 0;
67 virtual std::string
create_map(utils::optional<uint32_t> randomseed = {}) = 0;
A config object defines a single node in a WML file, with access to child nodes.
virtual config create_scenario(utils::optional< uint32_t > randomseed={})
virtual std::string create_map(utils::optional< uint32_t > randomseed={})=0
Creates a new map and returns it.
virtual std::string config_name() const =0
Return a friendly name for the generator used to differentiate between different configs of the same ...
virtual std::string name() const =0
Returns a string identifying the generator by name.
virtual void user_config()
Display the interactive screen, which allows the user to modify how the generator behaves.
virtual bool allow_user_config() const
Returns true if the map generator has an interactive screen, which allows the user to modify how the ...
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Base class for all the errors encountered by the engine.
mapgen_exception(const std::string &msg)