#include <set>
#include <string>
#include <vector>
#include "config.hpp"
Go to the source code of this file.
Functions | |
std::string | get_unique_saveid (const config &cfg, std::set< std::string > &seen_save_ids) |
int | get_first_human_team (const config::child_list::const_iterator &cfg, const config::child_list &unit_cfg) |
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) |
const config * | get_theme (const config &game_config, std::string theme_name) |
Return NULL if theme is not found. |
Definition in file config_adapter.hpp.
int get_first_human_team | ( | const config::child_list::const_iterator & | cfg, | |
const config::child_list & | unit_cfg | |||
) |
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 | |||
) |
Definition at line 54 of file config_adapter.cpp.
References unit_map::add(), player_info::available_units, player_info::can_recruit, unit_map::count(), gamemap::empty(), unit_map::end(), ERR_NG, unit_map::find(), game_state::get_player(), player_info::gold, player_info::gold_add, lexical_cast(), loc, LOG_NG, gamemap::on_board(), game_state::players, unit::set_game_context(), unit::set_side(), unit::side(), gamemap::starting_position(), utils::string_bool(), gamemap::location::valid(), VALIDATE, vgettext(), gamemap::location::x, and gamemap::location::y.
Referenced by play_controller::init().
Return NULL if theme is not found.
Definition at line 234 of file config_adapter.cpp.
References config::find_child(), and preferences::theme().
Referenced by play_controller::init(), and replay_controller::rebuild_replay_theme().
std::string get_unique_saveid | ( | const config & | cfg, | |
std::set< std::string > & | seen_save_ids | |||
) |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |