mapgen_dialog.hpp

Go to the documentation of this file.
00001 /* $Id: mapgen_dialog.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2003 - 2012 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 as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:05 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs