The Battle for Wesnoth  1.19.7+dev
Macros | Functions | Variables
map_create.cpp File Reference
#include "generators/map_create.hpp"
#include "generators/cave_map_generator.hpp"
#include "generators/default_map_generator.hpp"
#include "generators/lua_map_generator.hpp"
#include "log.hpp"
#include <sstream>
Include dependency graph for map_create.cpp:

Go to the source code of this file.

Macros

#define ERR_CF   LOG_STREAM(err, log_config)
 

Functions

map_generatorcreate_map_generator (const std::string &name, const config &cfg, const config *vars)
 
std::string random_generate_map (const std::string &name, const config &cfg, const config *vars)
 
config random_generate_scenario (const std::string &name, const config &cfg, const config *vars)
 

Variables

static lg::log_domain log_config ("config")
 

Macro Definition Documentation

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 26 of file map_create.cpp.

Function Documentation

◆ create_map_generator()

map_generator* create_map_generator ( const std::string &  name,
const config cfg,
const config vars 
)

◆ random_generate_map()

std::string random_generate_map ( const std::string &  name,
const config cfg,
const config vars 
)

Definition at line 44 of file map_create.cpp.

References create_map_generator(), and randomness::generator.

Referenced by saved_game::expand_random_scenario().

◆ random_generate_scenario()

config random_generate_scenario ( const std::string &  name,
const config cfg,
const config vars 
)

Definition at line 56 of file map_create.cpp.

References create_map_generator(), and randomness::generator.

Referenced by saved_game::expand_random_scenario().

Variable Documentation

◆ log_config

lg::log_domain log_config("config") ( "config"  )
static