The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 
virtual ~random_map ()
 
const configgenerator_data () const
 
std::string name () const
 
std::string description () const
 
std::string id () 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)
 
virtual ~scenario ()
 
bool can_launch_game () const
 
surface create_image_surface (const SDL_Rect &image_rect)
 
void set_metadata ()
 
int num_players () const
 
std::string map_size () const
 
- Public Member Functions inherited from ng::level
 level (const config &data)
 
virtual ~level ()
 
 MAKE_ENUM (TYPE,(SCENARIO,"scenario")(USER_MAP,"user_map")(USER_SCENARIO,"user_scenario")(RANDOM_MAP,"random_map")(CAMPAIGN,"campaign")(SP_CAMPAIGN,"sp_campaign")) virtual bool can_launch_game() const =0
 
virtual std::string icon () 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 &)
 
void operator= (const random_map &)
 

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
boost::scoped_ptr< gamemapmap_
 
surface minimap_img_
 
std::string map_hash_
 
- Protected Attributes inherited from ng::level
config data_
 

Detailed Description

Definition at line 120 of file create_engine.hpp.

Constructor & Destructor Documentation

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

Definition at line 285 of file create_engine.cpp.

ng::random_map::random_map ( const random_map )
private

Member Function Documentation

map_generator * ng::random_map::create_map_generator ( ) const
std::string ng::random_map::description ( ) const
virtual

Reimplemented from ng::level.

Definition at line 299 of file create_engine.cpp.

References ng::level::data_.

bool ng::random_map::generate_whole_scenario ( ) const

Definition at line 309 of file create_engine.cpp.

References generate_whole_scenario_.

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

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

Definition at line 289 of file create_engine.cpp.

References generator_data_.

Referenced by create_map_generator().

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

Definition at line 314 of file create_engine.cpp.

References generator_name_.

Referenced by create_map_generator().

std::string ng::random_map::id ( ) const
virtual

Reimplemented from ng::level.

Definition at line 304 of file create_engine.cpp.

References ng::level::data_.

Referenced by ng::create_engine::find_level_by_id(), and ng::create_engine::find_level_type_by_id().

std::string ng::random_map::name ( ) const
virtual

Reimplemented from ng::level.

Definition at line 294 of file create_engine.cpp.

References ng::level::data_.

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

Member Data Documentation

bool ng::random_map::generate_whole_scenario_
private

Definition at line 143 of file create_engine.hpp.

Referenced by generate_whole_scenario().

config ng::random_map::generator_data_
private

Definition at line 141 of file create_engine.hpp.

Referenced by generator_data(), and random_map().

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

Definition at line 144 of file create_engine.hpp.

Referenced by generator_name().


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