mapgen_dialog.hpp

Go to the documentation of this file.
00001 /* $Id: mapgen_dialog.hpp 23842 2008-02-16 08:47:16Z mordante $ */
00002 /*
00003    Copyright (C) 2003 - 2008 by David White <dave@whitevine.net>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License version 2
00008    or at your option any later version.
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY.
00011 
00012    See the COPYING file for more details.
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

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