#include "global.hpp"
#include "config.hpp"
#include "statistics.hpp"
#include "util.hpp"
#include "log.hpp"
#include "serialization/binary_or_text.hpp"
#include "unit.hpp"
Go to the source code of this file.
Definition in file statistics.cpp.
#define ERR_NG lg::err(lg::engine) |
Definition at line 26 of file statistics.cpp.
typedef statistics::stats stats [static] |
Definition at line 34 of file statistics.cpp.
static stats& get_stats | ( | int | team | ) | [static] |
Definition at line 86 of file statistics.cpp.
References master_stats, and team_stats.
Referenced by statistics::advance_unit(), statistics::attack_context::attacker_stats(), statistics::attack_context::defender_stats(), dialogs::network_data_dialog(), statistics::recall_unit(), statistics::recruit_unit(), statistics::reset_turn_stats(), statistics::un_recall_unit(), and statistics::un_recruit_unit().
static void merge_battle_result_maps | ( | stats::battle_result_map & | a, | |
const stats::battle_result_map & | b | |||
) | [static] |
Definition at line 181 of file statistics.cpp.
References merge_str_int_map().
Referenced by merge_stats().
Definition at line 188 of file statistics.cpp.
References statistics::stats::advanced_to, statistics::stats::attacks, statistics::stats::damage_inflicted, statistics::stats::damage_taken, statistics::stats::deaths, statistics::stats::defends, statistics::stats::expected_damage_inflicted, statistics::stats::expected_damage_taken, statistics::stats::killed, merge_battle_result_maps(), merge_str_int_map(), statistics::stats::new_expected_damage_inflicted, statistics::stats::new_expected_damage_taken, statistics::stats::new_turn_expected_damage_inflicted, statistics::stats::new_turn_expected_damage_taken, statistics::stats::recall_cost, statistics::stats::recalls, statistics::stats::recruit_cost, statistics::stats::recruits, statistics::stats::turn_damage_inflicted, statistics::stats::turn_damage_taken, statistics::stats::turn_expected_damage_inflicted, and statistics::stats::turn_expected_damage_taken.
Referenced by statistics::calculate_stats().
static void merge_str_int_map | ( | stats::str_int_map & | a, | |
const stats::str_int_map & | b | |||
) | [static] |
Definition at line 174 of file statistics.cpp.
Referenced by merge_battle_result_maps(), and merge_stats().
static stats::battle_result_map read_battle_result_map | ( | const config & | cfg | ) | [static] |
Definition at line 160 of file statistics.cpp.
References config::get_children(), read_str_int_map(), and config::values.
Referenced by statistics::stats::read().
static stats::str_int_map read_str_int_map | ( | const config & | cfg | ) | [static] |
Definition at line 122 of file statistics.cpp.
References config::values.
Referenced by statistics::stats::read(), and read_battle_result_map().
static void write_battle_result_map | ( | config_writer & | out, | |
const stats::battle_result_map & | m | |||
) | [static] |
Definition at line 147 of file statistics.cpp.
References buf, config_writer::close_child(), config_writer::open_child(), config_writer::write_key_val(), and write_str_int_map().
static config write_battle_result_map | ( | const stats::battle_result_map & | m | ) | [static] |
Definition at line 132 of file statistics.cpp.
References config::add_child(), buf, and write_str_int_map().
Referenced by statistics::stats::write().
static void write_str_int_map | ( | config_writer & | out, | |
const stats::str_int_map & | m | |||
) | [static] |
static config write_str_int_map | ( | const stats::str_int_map & | m | ) | [static] |
Definition at line 101 of file statistics.cpp.
References buf.
Referenced by statistics::stats::write(), and write_battle_result_map().
std::vector<scenario_stats> master_stats [static] |
Definition at line 82 of file statistics.cpp.
Referenced by statistics::calculate_stats(), statistics::clear_current_scenario(), statistics::fresh_stats(), get_stats(), statistics::read_stats(), statistics::scenario_context::scenario_context(), and statistics::write_stats().
bool mid_scenario = false [static] |
Definition at line 32 of file statistics.cpp.
std::string scenario_name |
Definition at line 49 of file statistics.cpp.
int stats_disabled = 0 [static] |
Definition at line 36 of file statistics.cpp.
std::vector<stats> team_stats |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |