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