Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef MAPGEN_DIALOG_HPP_INCLUDED
00017 #define MAPGEN_DIALOG_HPP_INCLUDED
00018
00019 #include "config.hpp"
00020 #include "mapgen.hpp"
00021
00022 class default_map_generator : public map_generator
00023 {
00024 public:
00025 default_map_generator(const config &game_config);
00026
00027 bool allow_user_config() const;
00028 void user_config(display& disp);
00029
00030 std::string name() const;
00031
00032 std::string config_name() const;
00033
00034 std::string create_map(const std::vector<std::string>& args);
00035 config create_scenario(const std::vector<std::string>& args);
00036
00037 private:
00038
00039 std::string generate_map(const std::vector<std::string>& args, std::map<map_location,std::string>* labels=NULL);
00040
00041 size_t default_width_, default_height_, width_, height_, island_size_, iterations_, hill_size_, max_lakes_, nvillages_, castle_size_, nplayers_;
00042 bool link_castles_;
00043 config cfg_;
00044 };
00045
00046 #endif