The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
default_map_generator.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2016 by David White <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef DEFAULT_MAP_GENERATOR_HPP_INCLUDED
16 #define DEFAULT_MAP_GENERATOR_HPP_INCLUDED
17 
18 #include "config.hpp"
20 
22 {
23 public:
25 
26  bool allow_user_config() const;
27  void user_config(CVideo& v);
28 
29  std::string name() const;
30 
31  std::string config_name() const;
32 
33  std::string create_map(boost::optional<boost::uint32_t> randomseed);
34  config create_scenario(boost::optional<boost::uint32_t> randomseed);
35 
36 private:
37 
38  std::string generate_map(std::map<map_location,std::string>* labels, boost::optional<boost::uint32_t> randomseed);
39 
43 };
44 
45 #endif
std::string generate_map(std::map< map_location, std::string > *labels, boost::optional< boost::uint32_t > randomseed)
Definition: video.hpp:58
config create_scenario(boost::optional< boost::uint32_t > randomseed)
std::string config_name() const
Return a friendly name for the generator used to differentiate between different configs of the same ...
Definitions for the interface to Wesnoth Markup Language (WML).
std::string create_map(boost::optional< boost::uint32_t > randomseed)
Creates a new map and returns it.
const GLdouble * v
Definition: glew.h:1359
bool allow_user_config() const
Returns true if the map generator has an interactive screen, which allows the user to modify how the ...
Game configuration data as global variables.
Definition: build_info.cpp:38
default_map_generator(const config &game_config)
void user_config(CVideo &v)
Display the interactive screen, which allows the user to modify how the generator behaves...
std::string name() const
Returns a string identifying the generator by name.
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83
GLsizei const GLcharARB ** string
Definition: glew.h:4503