Public Member Functions | Public Attributes

mp_game_settings Struct Reference

#include <mp_game_settings.hpp>

Inheritance diagram for mp_game_settings:
Inheritance graph
[legend]
Collaboration diagram for mp_game_settings:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 24 of file mp_game_settings.hpp.


Constructor & Destructor Documentation

mp_game_settings::mp_game_settings (  ) 

Definition at line 24 of file mp_game_settings.cpp.

References reset().

Here is the call graph for this function:

mp_game_settings::mp_game_settings ( const config cfg  ) 

Definition at line 52 of file mp_game_settings.cpp.

References set_from_config().

Here is the call graph for this function:

mp_game_settings::mp_game_settings ( const mp_game_settings settings  ) 

Definition at line 81 of file mp_game_settings.cpp.


Member Function Documentation

void mp_game_settings::reset (  ) 
void mp_game_settings::set_from_config ( const config game_cfg  ) 
config mp_game_settings::to_config (  )  const [virtual]

Member Data Documentation

Definition at line 38 of file mp_game_settings.hpp.

Referenced by mp::connect::connect(), mp::create::process_event(), and reset().

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


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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