config_adapter.hpp

Go to the documentation of this file.
00001 /* $Id: config_adapter.hpp 25333 2008-03-30 13:49:03Z jhinrichs $ */
00002 /*
00003    Copyright (C) 2005 - 2008 by Joerg Hinrichs <joerg.hinrichs@alice-dsl.de>
00004    wesnoth playlevel Copyright (C) 2003 by David White <dave@whitevine.net>
00005    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License version 2
00009    or 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 //! @file config_adapter.hpp
00017 //!
00018 
00019 #ifndef CONFIG_ADAPTER_HPP_INCLUDED
00020 #define CONFIG_ADAPTER_HPP_INCLUDED
00021 
00022 
00023 #include <set>
00024 #include <string>
00025 #include <vector>
00026 #include "config.hpp"
00027 
00028 class gamestatus;
00029 class game_state;
00030 class gamemap;
00031 class unit_map;
00032 class team;
00033 
00034 // This module is responsible for constructing objects like 'team'
00035 // or 'unit' out of config-information, that is based on WML.
00036 
00037 std::string get_unique_saveid(const config& cfg, std::set<std::string>& seen_save_ids);
00038 int get_first_human_team(const config::child_list::const_iterator& cfg, const config::child_list& unit_cfg);
00039 void get_player_info(const config& cfg, game_state& gamestate, std::string save_id, std::vector<team>& teams, const config& level, gamemap& map, unit_map& units, gamestatus& game_status, bool snapshot, bool replay);
00040 const config* get_theme(const config& game_config, std::string theme_name);
00041 
00042 #endif

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