Classes | Namespaces | Typedefs | Functions

gamestatus.hpp File Reference

#include "mp_game_settings.hpp"
#include "random.hpp"
#include "simple_rng.hpp"
#include "map_location.hpp"
#include "variable.hpp"
#include "serialization/binary_or_text.hpp"
#include "boost/shared_ptr.hpp"
Include dependency graph for gamestatus.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  game_classification
struct  wml_menu_item
class  game_state

Namespaces

namespace  t_translation

Typedefs

typedef boost::shared_ptr
< team_builder
team_builder_ptr

Functions

void write_players (game_state &gamestate, config &cfg, const bool use_snapshot=true, const bool merge_side=false)
void extract_summary_from_config (config &cfg_save, config &cfg_summary)

Detailed Description

Definition in file gamestatus.hpp.


Typedef Documentation

typedef boost::shared_ptr<team_builder> team_builder_ptr

Definition at line 36 of file gamestatus.hpp.


Function Documentation

void extract_summary_from_config ( config cfg_save,
config cfg_summary 
)

Todo:
Ideally we should grab all leaders if there's more than 1 human player?

Definition at line 375 of file gamestatus.cpp.

References config::add_child(), config::child(), config::child_or_empty(), config::child_range(), config::empty(), config::find_child(), and get_independent_image_path().

Referenced by savegame::save_index_class::rebuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void write_players ( game_state gamestate,
config cfg,
const bool  use_snapshot = true,
const bool  merge_side = false 
)

Definition at line 165 of file gamestatus.cpp.

References config::add_child(), config::child_range(), config::find_child(), config::get(), game_state::snapshot, game_state::starting_pos, and str_cast().

Referenced by play_game().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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