config_adapter.hpp File Reference

#include <set>
#include <string>
#include <vector>
#include "config.hpp"

Include dependency graph for config_adapter.hpp:

This graph shows which files directly or indirectly include this file:

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 configget_theme (const config &game_config, std::string theme_name)
 Return NULL if theme is not found.


Detailed Description

Definition in file config_adapter.hpp.


Function Documentation

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 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 
)

Definition at line 34 of file config_adapter.cpp.

Referenced by play_controller::init().


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