Manage statistics: recruitments, recalls, kills, losses, etc. More...
#include "global.hpp"
#include "statistics.hpp"
#include "log.hpp"
#include "resources.hpp"
#include "serialization/binary_or_text.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "util.hpp"
Go to the source code of this file.
Namespaces | |
statistics | |
Macros | |
#define | DBG_NG LOG_STREAM(debug, log_engine) |
#define | ERR_NG LOG_STREAM(err, log_engine) |
Variables | |
static lg::log_domain | log_engine ("engine") |
Manage statistics: recruitments, recalls, kills, losses, etc.
Definition in file statistics.cpp.
#define DBG_NG LOG_STREAM(debug, log_engine) |
Definition at line 30 of file statistics.cpp.
Referenced by statistics::calculate_stats(), and merge_stats().
#define ERR_NG LOG_STREAM(err, log_engine) |
Definition at line 31 of file statistics.cpp.
Referenced by statistics::sum_cost_str_int_map().
|
static |
Definition at line 98 of file statistics.cpp.
Referenced by statistics::advance_unit(), statistics::attack_context::attacker_stats(), statistics::attack_context::defender_stats(), statistics::recall_unit(), statistics::recruit_unit(), statistics::reset_turn_stats(), statistics::un_recall_unit(), statistics::un_recall_unit_cost(), and statistics::un_recruit_unit().
|
static |
Definition at line 178 of file statistics.cpp.
References i, and merge_str_int_map().
Referenced by merge_stats().
|
static |
Definition at line 185 of file statistics.cpp.
References DBG_NG, merge_battle_result_maps(), and merge_str_int_map().
Referenced by statistics::calculate_stats().
|
static |
Definition at line 171 of file statistics.cpp.
References i.
Referenced by merge_battle_result_maps(), and merge_stats().
|
static |
Definition at line 157 of file statistics.cpp.
References config::child_range(), i, read_str_int_map(), and config::remove_attribute().
Referenced by statistics::stats::read().
|
static |
Definition at line 125 of file statistics.cpp.
References config::attribute_range(), and i.
Referenced by statistics::stats::read(), and read_battle_result_map().
|
static |
Definition at line 135 of file statistics.cpp.
References config::add_child(), i, and write_str_int_map().
Referenced by statistics::stats::write().
|
static |
Definition at line 147 of file statistics.cpp.
References config_writer::close_child(), i, config_writer::open_child(), config_writer::write_key_val(), and write_str_int_map().
|
static |
Definition at line 108 of file statistics.cpp.
References i.
Referenced by statistics::stats::write(), and write_battle_result_map().
|
static |
Definition at line 118 of file statistics.cpp.
References i, and config_writer::write_key_val().
|
static |