Public Member Functions | |
team_info () | |
void | read (const config &cfg) |
void | write (config &cfg) const |
void | handle_legacy_share_vision (const config &cfg) |
Public Attributes | |
int | gold |
int | start_gold |
int | income |
int | income_per_village |
int | support_per_village |
int | minimum_recruit_price |
int | recall_cost |
std::set< std::string > | can_recruit |
std::string | team_name |
t_string | user_team_name |
t_string | side_name |
std::string | faction |
t_string | faction_name |
std::string | save_id |
std::string | current_player |
std::string | countdown_time |
int | action_bonus_count |
std::string | flag |
std::string | flag_icon |
std::string | id |
bool | scroll_to_leader |
t_string | objectives |
bool | objectives_changed |
< Team's objectives for the current level. More... | |
side_controller::type | controller |
bool | is_local |
defeat_condition::type | defeat_cond |
side_proxy_controller::type | proxy_controller |
team_shared_vision::type | share_vision |
bool | disallow_observers |
bool | allow_player |
bool | chose_random |
bool | no_leader |
bool | hidden |
bool | no_turn_confirmation |
std::string | color |
int | side |
bool | persistent |
bool | lost |
int | carryover_percentage |
bool | carryover_add |
double | carryover_bonus |
int | carryover_gold |
config | variables |
void team::team_info::handle_legacy_share_vision | ( | const config & | cfg | ) |
Definition at line 268 of file team.cpp.
References config::has_attribute(), share_vision, and preferences::shroud().
Referenced by read().
void team::team_info::read | ( | const config & | cfg | ) |
Definition at line 166 of file team.cpp.
References action_bonus_count, ai::manager::add_ai_for_side_from_config(), ai::manager::add_ai_for_side_from_file(), allow_player, can_recruit, carryover_add, carryover_bonus, carryover_gold, carryover_percentage, config::child_or_empty(), chose_random, color, controller, countdown_time, current_player, team::default_team_gold_, defeat_cond, disallow_observers, faction, faction_name, flag, flag_icon, t_string::from_serialized(), string_enums::enum_base< Definition >::get_enum(), team::get_side_color_id_from_config(), ai::manager::get_singleton(), string_enums::enum_base< Definition >::get_string(), gold, game_config::gold_carryover_percentage, handle_legacy_share_vision(), config::has_attribute(), ai::manager::has_manager(), hidden, id, income, income_per_village, is_local, LOG_NG, lost, no_leader, no_turn_confirmation, objectives, objectives_changed, persistent, game_config::recall_cost, recall_cost, team::recruits(), save_id, scroll_to_leader, share_vision, side, side_name, utils::split(), start_gold, support_per_village, team_name, t_string::translatable(), user_team_name, variables, game_config::village_income, game_config::village_support, and team::village_support().
Referenced by team::build().
void team::team_info::write | ( | config & | cfg | ) | const |
Definition at line 281 of file team.cpp.
References action_bonus_count, config::add_child(), allow_player, can_recruit, carryover_add, carryover_bonus, carryover_gold, carryover_percentage, chose_random, color, controller, countdown_time, current_player, defeat_cond, disallow_observers, config::empty(), faction, faction_name, flag, flag_icon, ai::manager::get_singleton(), string_enums::enum_base< Definition >::get_string(), gold, hidden, id, income, income_per_village, utils::join(), lost, no_leader, no_turn_confirmation, objectives, objectives_changed, persistent, recall_cost, save_id, scroll_to_leader, share_vision, side, side_name, start_gold, support_per_village, team_name, team::to_config(), user_team_name, and variables.
Referenced by team::write().
int team::team_info::action_bonus_count |
bool team::team_info::allow_player |
std::set<std::string> team::team_info::can_recruit |
Definition at line 90 of file team.hpp.
Referenced by team::add_recruit(), team::log_recruitable(), team::minimum_recruit_price(), read(), team::set_recruits(), and write().
bool team::team_info::carryover_add |
double team::team_info::carryover_bonus |
int team::team_info::carryover_gold |
int team::team_info::carryover_percentage |
bool team::team_info::chose_random |
std::string team::team_info::color |
side_controller::type team::team_info::controller |
std::string team::team_info::countdown_time |
std::string team::team_info::current_player |
defeat_condition::type team::team_info::defeat_cond |
bool team::team_info::disallow_observers |
std::string team::team_info::faction |
t_string team::team_info::faction_name |
std::string team::team_info::flag |
std::string team::team_info::flag_icon |
int team::team_info::gold |
Definition at line 83 of file team.hpp.
Referenced by team::build(), read(), and write().
bool team::team_info::hidden |
std::string team::team_info::id |
int team::team_info::income |
int team::team_info::income_per_village |
bool team::team_info::lost |
|
mutable |
Definition at line 88 of file team.hpp.
Referenced by team::add_recruit(), team::minimum_recruit_price(), and team::set_recruits().
bool team::team_info::no_leader |
bool team::team_info::no_turn_confirmation |
t_string team::team_info::objectives |
Definition at line 109 of file team.hpp.
Referenced by read(), team::set_objectives(), and write().
|
mutable |
< Team's objectives for the current level.
Set to true when the objectives for this time changes. Reset to false when the objectives for this team have been displayed to the user.
Definition at line 114 of file team.hpp.
Referenced by read(), team::set_objectives(), and write().
bool team::team_info::persistent |
side_proxy_controller::type team::team_info::proxy_controller |
int team::team_info::recall_cost |
std::string team::team_info::save_id |
bool team::team_info::scroll_to_leader |
team_shared_vision::type team::team_info::share_vision |
Definition at line 123 of file team.hpp.
Referenced by handle_legacy_share_vision(), read(), and write().
int team::team_info::side |
Definition at line 133 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), read(), and write().
t_string team::team_info::side_name |
int team::team_info::start_gold |
Definition at line 84 of file team.hpp.
Referenced by team::build(), read(), and write().
int team::team_info::support_per_village |
std::string team::team_info::team_name |
Definition at line 91 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), team::change_team(), read(), and write().
t_string team::team_info::user_team_name |
Definition at line 92 of file team.hpp.
Referenced by team::change_team(), read(), and write().
config team::team_info::variables |