#include <carryover.hpp>
Public Member Functions | |
carryover () | |
carryover (const config &side) | |
carryover (const team &t, const int gold, const bool add) | |
~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 16 of file carryover.hpp.
|
inline |
Definition at line 19 of file carryover.hpp.
|
explicit |
Definition at line 24 of file carryover.cpp.
References config::child_range(), recall_list_, and config::remove_attributes().
Definition at line 41 of file carryover.cpp.
References team::recall_list(), and recall_list_.
|
inline |
Definition at line 30 of file carryover.hpp.
|
private |
Definition at line 91 of file carryover.cpp.
References utils::join(), and previous_recruits_.
Referenced by to_config(), and to_string().
|
inline |
Definition at line 32 of file carryover.hpp.
References save_id_.
Referenced by carryover_info::merge_old_carryover(), and save_id_equals::operator()().
Definition at line 110 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 101 of file carryover.cpp.
References get_recruits(), gold_, recall_list_, and save_id_.
Definition at line 58 of file carryover.cpp.
References add_, config::child_or_add(), config::clear(), default_gold_qty, gold_, config::swap(), and variables_.
Definition at line 84 of file carryover.cpp.
References config::add_child(), config::clear(), and recall_list_.
Definition at line 78 of file carryover.cpp.
References utils::join(), and previous_recruits_.
|
private |
Definition at line 39 of file carryover.hpp.
Referenced by to_config(), and transfer_all_gold_to().
|
private |
Definition at line 40 of file carryover.hpp.
Referenced by to_config().
|
private |
Definition at line 41 of file carryover.hpp.
Referenced by to_config(), to_string(), and transfer_all_gold_to().
|
private |
Definition at line 42 of file carryover.hpp.
Referenced by get_recruits(), and transfer_all_recruits_to().
|
private |
Definition at line 46 of file carryover.hpp.
Referenced by carryover(), to_config(), to_string(), and transfer_all_recalls_to().
|
private |
Definition at line 47 of file carryover.hpp.
Referenced by get_save_id(), to_config(), and to_string().
|
private |
Definition at line 48 of file carryover.hpp.
Referenced by to_config(), and transfer_all_gold_to().