#include <carryover.hpp>
Public Member Functions | |
carryover () | |
carryover (const config &side) | |
~carryover () | |
const std::string & | get_save_id () const |
void | transfer_all_gold_to (config &side_cfg) |
void | transfer_all_recruits_to (config &side_cfg) |
void | transfer_all_recalls_to (config &side_cfg) |
const std::string | to_string () |
void | to_config (config &cfg) |
Private Member Functions | |
std::string | get_recruits (bool erase=false) |
Private Attributes | |
bool | add_ |
std::string | current_player_ |
int | gold_ |
std::set< std::string > | previous_recruits_ |
std::vector< config > | recall_list_ |
std::string | save_id_ |
config | variables_ |
Definition at line 25 of file carryover.hpp.
|
inline |
Definition at line 28 of file carryover.hpp.
|
explicit |
Definition at line 26 of file carryover.cpp.
References config::child_range(), recall_list_, and config::remove_attributes().
|
inline |
Definition at line 38 of file carryover.hpp.
|
private |
Definition at line 78 of file carryover.cpp.
References utf8::erase(), utils::join(), and previous_recruits_.
Referenced by to_config(), and to_string().
|
inline |
Definition at line 40 of file carryover.hpp.
References save_id_.
Referenced by carryover_info::merge_old_carryover(), and save_id_equals::operator()().
void carryover::to_config | ( | config & | cfg | ) |
Definition at line 97 of file carryover.cpp.
References add_, config::add_child(), current_player_, get_recruits(), gold_, recall_list_, save_id_, and variables_.
const std::string carryover::to_string | ( | ) |
Definition at line 88 of file carryover.cpp.
References get_recruits(), gold_, recall_list_, and save_id_.
void carryover::transfer_all_gold_to | ( | config & | side_cfg | ) |
Definition at line 45 of file carryover.cpp.
References add_, config::child_or_add(), config::clear(), default_gold_qty, gold_, config::swap(), and variables_.
void carryover::transfer_all_recalls_to | ( | config & | side_cfg | ) |
Definition at line 71 of file carryover.cpp.
References config::add_child(), and recall_list_.
void carryover::transfer_all_recruits_to | ( | config & | side_cfg | ) |
Definition at line 65 of file carryover.cpp.
References utils::join(), and previous_recruits_.
|
private |
Definition at line 47 of file carryover.hpp.
Referenced by to_config(), and transfer_all_gold_to().
|
private |
Definition at line 48 of file carryover.hpp.
Referenced by to_config().
|
private |
Definition at line 49 of file carryover.hpp.
Referenced by to_config(), to_string(), and transfer_all_gold_to().
|
private |
Definition at line 50 of file carryover.hpp.
Referenced by get_recruits(), and transfer_all_recruits_to().
|
private |
Definition at line 54 of file carryover.hpp.
Referenced by carryover(), to_config(), to_string(), and transfer_all_recalls_to().
|
private |
Definition at line 55 of file carryover.hpp.
Referenced by get_save_id(), to_config(), and to_string().
|
private |
Definition at line 56 of file carryover.hpp.
Referenced by to_config(), and transfer_all_gold_to().