#include <statistics.hpp>
Definition at line 31 of file statistics.hpp.
typedef std::map<std::string,int> statistics::stats::str_int_map |
Definition at line 40 of file statistics.hpp.
A type that will map a string of hit/miss to the number of times that sequence has occurred.
Definition at line 46 of file statistics.hpp.
A type that will map different % chances to hit to different results.
Definition at line 49 of file statistics.hpp.
statistics::stats::stats | ( | ) |
Definition at line 220 of file statistics.cpp.
statistics::stats::stats | ( | const config & | cfg | ) | [explicit] |
config statistics::stats::write | ( | ) | const |
Definition at line 234 of file statistics.cpp.
References config::add_child(), advanced_to, attacks, damage_inflicted, damage_taken, deaths, defends, expected_damage_inflicted, expected_damage_taken, killed, new_expected_damage_inflicted, new_expected_damage_taken, new_turn_expected_damage_inflicted, new_turn_expected_damage_taken, recall_cost, recalls, recruit_cost, recruits, turn_damage_inflicted, turn_damage_taken, turn_expected_damage_inflicted, turn_expected_damage_taken, write_battle_result_map(), and write_str_int_map().
void statistics::stats::write | ( | config_writer & | out | ) | const |
Definition at line 294 of file statistics.cpp.
References advanced_to, attacks, config_writer::close_child(), damage_inflicted, damage_taken, deaths, defends, expected_damage_inflicted, expected_damage_taken, killed, new_expected_damage_inflicted, new_expected_damage_taken, new_turn_expected_damage_inflicted, new_turn_expected_damage_taken, config_writer::open_child(), recall_cost, recalls, recruit_cost, recruits, turn_damage_inflicted, turn_damage_taken, turn_expected_damage_inflicted, turn_expected_damage_taken, write_battle_result_map(), config_writer::write_key_val(), and write_str_int_map().
void statistics::stats::read | ( | const config & | cfg | ) |
Definition at line 366 of file statistics.cpp.
References advanced_to, attacks, config::child(), damage_inflicted, damage_taken, deaths, defends, expected_damage_inflicted, expected_damage_taken, killed, lexical_cast(), new_expected_damage_inflicted, new_expected_damage_taken, new_turn_expected_damage_inflicted, new_turn_expected_damage_taken, read_battle_result_map(), read_str_int_map(), recall_cost, recalls, recruit_cost, recruits, turn_damage_inflicted, turn_damage_taken, turn_expected_damage_inflicted, and turn_expected_damage_taken.
Referenced by stats().
Definition at line 41 of file statistics.hpp.
Referenced by merge_stats(), read(), statistics::recruit_unit(), statistics::un_recruit_unit(), and write().
Definition at line 41 of file statistics.hpp.
Referenced by merge_stats(), read(), statistics::recall_unit(), statistics::un_recall_unit(), and write().
Definition at line 41 of file statistics.hpp.
Referenced by statistics::advance_unit(), merge_stats(), read(), and write().
Definition at line 41 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
Definition at line 41 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
Definition at line 42 of file statistics.hpp.
Referenced by merge_stats(), read(), statistics::recruit_unit(), statistics::un_recruit_unit(), and write().
Definition at line 42 of file statistics.hpp.
Referenced by merge_stats(), read(), statistics::recall_unit(), statistics::un_recall_unit(), and write().
Definition at line 51 of file statistics.hpp.
Referenced by merge_stats(), read(), write(), and statistics::attack_context::~attack_context().
Definition at line 51 of file statistics.hpp.
Referenced by merge_stats(), read(), write(), and statistics::attack_context::~attack_context().
long long statistics::stats::damage_inflicted |
Definition at line 53 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
long long statistics::stats::damage_taken |
Definition at line 53 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
long long statistics::stats::turn_damage_inflicted |
Definition at line 54 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
long long statistics::stats::turn_damage_taken |
Definition at line 54 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
const long long statistics::stats::desimal_shift = 1000 [static] |
Definition at line 56 of file statistics.hpp.
Referenced by statistics::attack_context::attack_excepted_damage().
Definition at line 64 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
long long statistics::stats::expected_damage_taken |
Definition at line 64 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), and write().
Definition at line 65 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
Definition at line 65 of file statistics.hpp.
Referenced by statistics::attack_context::attack_result(), statistics::attack_context::defend_result(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
Definition at line 66 of file statistics.hpp.
Referenced by statistics::attack_context::attack_excepted_damage(), merge_stats(), read(), and write().
Definition at line 66 of file statistics.hpp.
Referenced by statistics::attack_context::attack_excepted_damage(), merge_stats(), read(), and write().
Definition at line 67 of file statistics.hpp.
Referenced by statistics::attack_context::attack_excepted_damage(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
Definition at line 67 of file statistics.hpp.
Referenced by statistics::attack_context::attack_excepted_damage(), merge_stats(), read(), statistics::reset_turn_stats(), and write().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |