28 #define ERR_NG LOG_STREAM(err, log_mapgen)
29 #define LOG_NG LOG_STREAM(info, log_mapgen)
52 int main(
int argc,
char** argv)
54 int x = 50,
y = 50, iterations = 50,
55 hill_size = 50, lakes=3,
56 nvillages = 25, nplayers = 2;
58 x = std::stoi(argv[1]);
62 y = std::stoi(argv[2]);
66 iterations = std::stoi(argv[3]);
70 hill_size = std::stoi(argv[4]);
74 lakes = std::stoi(argv[5]);
78 nvillages = std::stoi(argv[6]);
82 nplayers = std::stoi(argv[7]);
86 std::cout << generate_map(x,
y,iterations,hill_size,lakes,nvillages,nplayers) <<
"\n";
virtual bool allow_user_config() const
Returns true if the map generator has an interactive screen, which allows the user to modify how the ...
GLint GLint GLint GLint GLint GLint y
virtual config create_scenario(boost::optional< boost::uint32_t > randomseed=boost::none)
Definitions for the interface to Wesnoth Markup Language (WML).
virtual std::string create_map(boost::optional< boost::uint32_t > randomseed=boost::none)=0
Creates a new map and returns it.
GLint GLint GLint GLint GLint x
int main(int argc, char **argv)
static lg::log_domain log_mapgen("mapgen")
Standard logging facilities (interface).
virtual void user_config(CVideo &v)
Display the interactive screen, which allows the user to modify how the generator behaves...
A config object defines a single node in a WML file, with access to child nodes.