#include <mp_game_settings.hpp>


Public Member Functions | |
| mp_game_settings () | |
| mp_game_settings (const config &cfg) | |
| mp_game_settings (const mp_game_settings &settings) | |
| void | reset () |
| void | set_from_config (const config &game_cfg) |
| config | to_config () const |
Public Attributes | |
| std::string | name |
| std::string | password |
| std::string | hash |
| std::string | mp_era |
| std::string | mp_scenario |
| int | village_gold |
| int | village_support |
| int | xp_modifier |
| int | mp_countdown_init_time |
| int | mp_countdown_reservoir_time |
| int | mp_countdown_turn_bonus |
| int | mp_countdown_action_bonus |
| bool | mp_countdown |
| bool | use_map_settings |
| bool | random_start_time |
| bool | fog_game |
| bool | shroud_game |
| bool | allow_observers |
| bool | shuffle_sides |
| bool | share_view |
| bool | share_maps |
| bool | saved_game |
| config | scenario_data |
| If the game is to be randomly generated, the map generator will create the scenario data in this variable. | |
Definition at line 24 of file mp_game_settings.hpp.
| mp_game_settings::mp_game_settings | ( | ) |
Definition at line 24 of file mp_game_settings.cpp.
References reset().

| mp_game_settings::mp_game_settings | ( | const config & | cfg | ) |
Definition at line 52 of file mp_game_settings.cpp.
References set_from_config().

| mp_game_settings::mp_game_settings | ( | const mp_game_settings & | settings | ) |
Definition at line 81 of file mp_game_settings.cpp.
| void mp_game_settings::reset | ( | ) |
Definition at line 135 of file mp_game_settings.cpp.
References allow_observers, config::clear(), fog_game, hash, mp_countdown, mp_countdown_action_bonus, mp_countdown_init_time, mp_countdown_reservoir_time, mp_countdown_turn_bonus, mp_era, mp_scenario, name, password, random_start_time, scenario_data, share_maps, share_view, shroud_game, shuffle_sides, use_map_settings, village_gold, village_support, and xp_modifier.
Referenced by mp_game_settings().


| void mp_game_settings::set_from_config | ( | const config & | game_cfg | ) |
Definition at line 109 of file mp_game_settings.cpp.
References allow_observers, config::child(), fog_game, hash, mp_countdown, mp_countdown_action_bonus, mp_countdown_init_time, mp_countdown_reservoir_time, mp_countdown_turn_bonus, mp_era, mp_scenario, name, saved_game, shroud_game, shuffle_sides, use_map_settings, village_gold, village_support, and xp_modifier.
Referenced by mp_game_settings().


| config mp_game_settings::to_config | ( | ) | const [virtual] |
Implements savegame::savegame_config.
Definition at line 155 of file mp_game_settings.cpp.
References allow_observers, fog_game, hash, mp_countdown, mp_countdown_action_bonus, mp_countdown_init_time, mp_countdown_reservoir_time, mp_countdown_turn_bonus, mp_era, mp_scenario, name, saved_game, shroud_game, shuffle_sides, use_map_settings, village_gold, village_support, and xp_modifier.
Referenced by savegame::loadgame::fill_mplevel_config(), mp::connect::load_game(), play_game(), and game_state::write_config().

Definition at line 55 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), mp::connect::load_game(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 53 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), reset(), set_from_config(), to_config(), and mp::create::~create().
| std::string mp_game_settings::hash |
Definition at line 39 of file mp_game_settings.hpp.
Referenced by mp::connect::load_game(), mp::create::process_event(), reset(), set_from_config(), and to_config().
Definition at line 50 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), mp::create::get_parameters(), play_controller::init(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 49 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), mp::create::get_parameters(), playmp_controller::play_human_turn(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 46 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), playsingle_controller::play_scenario(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 47 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), mp::create::get_parameters(), playmp_controller::play_human_turn(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 48 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), mp::create::get_parameters(), playmp_controller::play_human_turn(), reset(), set_from_config(), to_config(), and mp::create::~create().
| std::string mp_game_settings::mp_era |
Definition at line 40 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), mp::connect::load_game(), reset(), set_from_config(), and to_config().
| std::string mp_game_settings::mp_scenario |
Definition at line 41 of file mp_game_settings.hpp.
Referenced by events::console_handler::do_choose_level(), mp::connect::load_game(), reset(), set_from_config(), and to_config().
| std::string mp_game_settings::name |
Definition at line 37 of file mp_game_settings.hpp.
Referenced by mp::connect::connect(), mp::create::get_parameters(), reset(), set_from_config(), and to_config().
| std::string mp_game_settings::password |
Definition at line 38 of file mp_game_settings.hpp.
Referenced by mp::connect::connect(), mp::create::process_event(), and reset().
Definition at line 52 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), mp::connect::load_game(), reset(), and mp::create::~create().
Definition at line 60 of file mp_game_settings.hpp.
Referenced by savegame::loadgame::fill_mplevel_config(), mp::connect::hide_children(), mp::connect::load_game(), mp::create::process_event(), set_from_config(), and to_config().
If the game is to be randomly generated, the map generator will create the scenario data in this variable.
Definition at line 66 of file mp_game_settings.hpp.
Referenced by mp::create::hide_children(), mp::connect::load_game(), mp::create::process_event(), and reset().
Definition at line 58 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), and reset().
Definition at line 57 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), and reset().
Definition at line 54 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 56 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), mp::connect::load_game(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 51 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), mp::connect::lists_init(), reset(), set_from_config(), mp::connect::side::side(), to_config(), and mp::create::~create().
Definition at line 43 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 44 of file mp_game_settings.hpp.
Referenced by mp::connect::side::get_config(), mp::create::get_parameters(), reset(), set_from_config(), to_config(), and mp::create::~create().
Definition at line 45 of file mp_game_settings.hpp.
Referenced by mp::create::get_parameters(), mp::connect::load_game(), reset(), set_from_config(), to_config(), and mp::create::~create().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:13:18 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |