default_map_generator Class Reference

#include <mapgen_dialog.hpp>

Inheritance diagram for default_map_generator:

Inheritance graph
[legend]
Collaboration diagram for default_map_generator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 default_map_generator (const config *game_config)
bool allow_user_config () const
 Returns true iff the map generator has an interactive screen, which allows the user to modify how the generator behaves.
void user_config (display &disp)
 Display the interactive screen, which allows the user to modify how the generator behaves.
std::string name () const
 Returns a string identifying the generator by name.
std::string create_map (const std::vector< std::string > &args)
 Creates a new map and returns it.
config create_scenario (const std::vector< std::string > &args)

Private Member Functions

std::string generate_map (const std::vector< std::string > &args, std::map< gamemap::location, std::string > *labels=NULL)

Private Attributes

size_t default_width_
size_t default_height_
size_t width_
size_t height_
size_t island_size_
size_t iterations_
size_t hill_size_
size_t max_lakes_
size_t nvillages_
size_t castle_size_
size_t nplayers_
bool link_castles_
config cfg_


Detailed Description

Definition at line 21 of file mapgen_dialog.hpp.


Constructor & Destructor Documentation

default_map_generator::default_map_generator ( const config game_config  ) 


Member Function Documentation

bool default_map_generator::allow_user_config (  )  const [virtual]

Returns true iff the map generator has an interactive screen, which allows the user to modify how the generator behaves.

Implements map_generator.

Definition at line 89 of file mapgen_dialog.cpp.

void default_map_generator::user_config ( display disp  )  [virtual]

std::string default_map_generator::name (  )  const [virtual]

Returns a string identifying the generator by name.

The name should not contain spaces.

Implements map_generator.

Definition at line 322 of file mapgen_dialog.cpp.

std::string default_map_generator::create_map ( const std::vector< std::string > &  args  )  [virtual]

Creates a new map and returns it.

args may contain arguments to the map generator.

Implements map_generator.

Definition at line 324 of file mapgen_dialog.cpp.

References generate_map().

config default_map_generator::create_scenario ( const std::vector< std::string > &  args  )  [virtual]

Reimplemented from map_generator.

Definition at line 378 of file mapgen_dialog.cpp.

References config::add_child(), cfg_, config::child(), DBG_NG, generate_map(), height_, labels, and width_.

std::string default_map_generator::generate_map ( const std::vector< std::string > &  args,
std::map< gamemap::location, std::string > *  labels = NULL 
) [private]


Member Data Documentation

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), and generate_map().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), and generate_map().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), and generate_map().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 38 of file mapgen_dialog.hpp.

Referenced by default_map_generator(), generate_map(), and user_config().

Definition at line 39 of file mapgen_dialog.hpp.

Referenced by generate_map(), and user_config().

Definition at line 40 of file mapgen_dialog.hpp.

Referenced by create_scenario(), default_map_generator(), and generate_map().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs