#include <create_engine.hpp>
Public Member Functions | |
random_map (const config &data) | |
const config & | generator_data () const |
std::string | generator_name () const |
map_generator * | create_map_generator () const |
bool | generate_whole_scenario () const |
Public Member Functions inherited from ng::scenario | |
scenario (const config &data) | |
bool | can_launch_game () const |
void | set_metadata () |
int | num_players () const |
std::string | map_size () const |
bool | player_count_filter (int player_count) const |
Public Member Functions inherited from ng::level | |
level (const config &data) | |
virtual | ~level ()=default |
virtual std::string | id () const |
virtual std::string | name () const |
virtual std::string | icon () const |
virtual std::string | description () const |
virtual bool | allow_era_choice () const |
void | set_data (const config &data) |
const config & | data () const |
config & | data () |
Private Member Functions | |
random_map (const random_map &)=delete | |
random_map & | operator= (const random_map &)=delete |
Private Attributes | |
config | generator_data_ |
bool | generate_whole_scenario_ |
std::string | generator_name_ |
Additional Inherited Members | |
Protected Member Functions inherited from ng::scenario | |
void | set_sides () |
Protected Attributes inherited from ng::scenario | |
std::unique_ptr< gamemap > | map_ |
std::string | map_hash_ |
Protected Attributes inherited from ng::level | |
config | data_ |
Definition at line 181 of file create_engine.hpp.
ng::random_map::random_map | ( | const config & | data | ) |
Definition at line 153 of file create_engine.cpp.
References config::clear(), ng::level::data(), ng::level::data_, generator_data_, config::has_attribute(), config::has_child(), and config::mandatory_child().
|
privatedelete |
map_generator * ng::random_map::create_map_generator | ( | ) | const |
Definition at line 176 of file create_engine.cpp.
References create_map_generator(), generator_data(), and generator_name().
Referenced by ng::create_engine::set_current_level().
|
inline |
Definition at line 198 of file create_engine.hpp.
References generate_whole_scenario_.
Referenced by ng::create_engine::init_generated_level_data().
|
inline |
Definition at line 186 of file create_engine.hpp.
References generator_data_.
Referenced by create_map_generator().
|
inline |
Definition at line 191 of file create_engine.hpp.
References generator_name_.
Referenced by create_map_generator().
|
privatedelete |
|
private |
Definition at line 209 of file create_engine.hpp.
Referenced by generate_whole_scenario().
|
private |
Definition at line 207 of file create_engine.hpp.
Referenced by generator_data(), and random_map().
|
private |
Definition at line 210 of file create_engine.hpp.
Referenced by generator_name().