The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ng::random_map Class Reference

#include <create_engine.hpp>

Inheritance diagram for ng::random_map:
Inheritance graph

Public Member Functions

 random_map (const config &data)
 
const configgenerator_data () const
 
std::string generator_name () const
 
map_generatorcreate_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
 
 MAKE_ENUM (TYPE,(SCENARIO, "scenario")(USER_MAP, "user_map")(USER_SCENARIO, "user_scenario")(RANDOM_MAP, "random_map")(CAMPAIGN, "campaign")(SP_CAMPAIGN, "sp_campaign")) virtual void set_metadata()=0
 
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 configdata () const
 
configdata ()
 

Private Member Functions

 random_map (const random_map &)=delete
 
void 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< gamemapmap_
 
std::string map_hash_
 
- Protected Attributes inherited from ng::level
config data_
 

Detailed Description

Definition at line 188 of file create_engine.hpp.

Constructor & Destructor Documentation

◆ random_map() [1/2]

ng::random_map::random_map ( const config data)

◆ random_map() [2/2]

ng::random_map::random_map ( const random_map )
privatedelete

Member Function Documentation

◆ create_map_generator()

map_generator * ng::random_map::create_map_generator ( ) const

◆ generate_whole_scenario()

bool ng::random_map::generate_whole_scenario ( ) const
inline

Definition at line 205 of file create_engine.hpp.

References ng::level::operator=().

Referenced by ng::create_engine::init_generated_level_data().

◆ generator_data()

const config& ng::random_map::generator_data ( ) const
inline

Definition at line 193 of file create_engine.hpp.

Referenced by create_map_generator().

◆ generator_name()

std::string ng::random_map::generator_name ( ) const
inline

Definition at line 198 of file create_engine.hpp.

References create_map_generator().

Referenced by create_map_generator().

◆ operator=()

void ng::random_map::operator= ( const random_map )
privatedelete

Member Data Documentation

◆ generate_whole_scenario_

bool ng::random_map::generate_whole_scenario_
private

Definition at line 216 of file create_engine.hpp.

◆ generator_data_

config ng::random_map::generator_data_
private

Definition at line 214 of file create_engine.hpp.

Referenced by random_map().

◆ generator_name_

std::string ng::random_map::generator_name_
private

Definition at line 217 of file create_engine.hpp.


The documentation for this class was generated from the following files: