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... | |
CONTROLLER | controller |
bool | is_local |
DEFEAT_CONDITION | defeat_condition |
PROXY_CONTROLLER | proxy_controller |
SHARE_VISION | 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 |
Definition at line 221 of file team.cpp.
References config::has_attribute(), compression::NONE, and team::share_vision().
Referenced by team::handle_legacy_share_vision().
Definition at line 119 of file team.cpp.
References team::action_bonus_count(), ai::manager::add_ai_for_side_from_config(), ai::manager::add_ai_for_side_from_file(), team::carryover_add(), team::carryover_bonus(), team::carryover_gold(), team::carryover_percentage(), config::child_or_empty(), team::controller(), team::countdown_time(), team::current_player(), team::default_team_gold_, team::defeat_condition(), team::faction(), team::faction_name(), team::flag(), team::flag_icon(), t_string::from_serialized(), team::gold(), game_config::gold_carryover_percentage, team::handle_legacy_share_vision(), config::has_attribute(), team::hidden(), team::is_local(), LOG_NG, team::lost(), team::no_leader(), team::no_turn_confirmation(), team::objectives(), team::objectives_changed(), team::persistent(), game_config::recall_cost, team::recall_cost(), team::recruits(), team::save_id(), team::share_vision(), team::side(), team::side_name(), utils::split(), team::start_gold(), team::team_name(), t_string::translatable(), team::user_team_name(), team::variables(), game_config::village_income, game_config::village_support, and team::village_support().
Referenced by team::build().
Definition at line 237 of file team.cpp.
References team::action_bonus_count(), config::add_child(), team::carryover_add(), team::carryover_bonus(), team::carryover_gold(), team::carryover_percentage(), team::color(), team::controller(), team::countdown_time(), team::current_player(), team::defeat_condition(), team::faction(), team::faction_name(), team::flag(), team::flag_icon(), team::gold(), team::hidden(), utils::join(), team::lost(), team::no_leader(), team::no_turn_confirmation(), team::objectives(), team::objectives_changed(), team::persistent(), team::recall_cost(), team::save_id(), team::share_vision(), team::side(), team::side_name(), team::start_gold(), team::team_name(), ai::manager::to_config(), team::user_team_name(), and team::variables().
Referenced by team::write().
std::set<std::string> team::team_info::can_recruit |
Definition at line 116 of file team.hpp.
Referenced by team::add_recruit(), team::log_recruitable(), team::minimum_recruit_price(), team::recruits(), and team::set_recruits().
bool team::team_info::carryover_add |
Definition at line 164 of file team.hpp.
Referenced by team::carryover_add(), and team::set_carryover_add().
double team::team_info::carryover_bonus |
Definition at line 166 of file team.hpp.
Referenced by team::carryover_bonus(), and team::set_carryover_bonus().
int team::team_info::carryover_gold |
Definition at line 167 of file team.hpp.
Referenced by team::carryover_gold(), and team::set_carryover_gold().
int team::team_info::carryover_percentage |
Definition at line 163 of file team.hpp.
Referenced by team::carryover_percentage(), and team::set_carryover_percentage().
std::string team::team_info::color |
Definition at line 157 of file team.hpp.
Referenced by team::color(), and team::set_color().
CONTROLLER team::team_info::controller |
Definition at line 142 of file team.hpp.
Referenced by team::change_controller(), team::controller(), team::is_ai(), team::is_empty(), team::is_human(), team::make_ai(), and team::make_human().
std::string team::team_info::countdown_time |
std::string team::team_info::current_player |
Definition at line 124 of file team.hpp.
Referenced by team::current_player(), team::set_current_player(), and team::side_name().
DEFEAT_CONDITION team::team_info::defeat_condition |
Definition at line 144 of file team.hpp.
Referenced by team::defeat_condition(), team::set_defeat_condition(), and team::set_defeat_condition_string().
bool team::team_info::disallow_observers |
Definition at line 150 of file team.hpp.
Referenced by team::get_disallow_observers().
std::string team::team_info::faction |
Definition at line 120 of file team.hpp.
Referenced by team::faction().
t_string team::team_info::faction_name |
Definition at line 121 of file team.hpp.
Referenced by team::faction_name().
std::string team::team_info::flag |
Definition at line 128 of file team.hpp.
Referenced by team::flag(), and team::set_flag().
std::string team::team_info::flag_icon |
Definition at line 129 of file team.hpp.
Referenced by team::flag_icon(), and team::set_flag_icon().
int team::team_info::gold |
Definition at line 109 of file team.hpp.
Referenced by team::build().
bool team::team_info::hidden |
Definition at line 154 of file team.hpp.
Referenced by team::hidden(), and team::set_hidden().
std::string team::team_info::id |
int team::team_info::income |
Definition at line 111 of file team.hpp.
Referenced by team::base_income(), and team::set_base_income().
int team::team_info::income_per_village |
Definition at line 112 of file team.hpp.
Referenced by team::set_village_gold(), team::total_income(), and team::village_gold().
bool team::team_info::is_local |
Definition at line 143 of file team.hpp.
Referenced by team::is_local(), team::is_network(), and team::set_local().
bool team::team_info::lost |
Definition at line 161 of file team.hpp.
Referenced by team::lost(), and team::set_lost().
|
mutable |
Definition at line 114 of file team.hpp.
Referenced by team::add_recruit(), team::minimum_recruit_price(), and team::set_recruits().
bool team::team_info::no_leader |
Definition at line 153 of file team.hpp.
Referenced by team::have_leader(), and team::no_leader().
bool team::team_info::no_turn_confirmation |
Definition at line 155 of file team.hpp.
Referenced by team::no_turn_confirmation(), and team::set_no_turn_confirmation().
t_string team::team_info::objectives |
Definition at line 135 of file team.hpp.
Referenced by team::objectives(), and team::set_objectives().
|
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 140 of file team.hpp.
Referenced by team::objectives_changed(), team::reset_objectives_changed(), team::set_objectives(), and team::set_objectives_changed().
bool team::team_info::persistent |
Definition at line 160 of file team.hpp.
Referenced by team::persistent(), and team::set_persistent().
PROXY_CONTROLLER team::team_info::proxy_controller |
Definition at line 146 of file team.hpp.
Referenced by team::change_proxy(), team::is_droid(), team::is_idle(), team::is_proxy_human(), team::make_droid(), team::make_idle(), team::make_proxy_human(), team::proxy_controller(), team::toggle_droid(), and team::toggle_idle().
int team::team_info::recall_cost |
Definition at line 115 of file team.hpp.
Referenced by team::recall_cost(), and team::set_recall_cost().
std::string team::team_info::save_id |
Definition at line 122 of file team.hpp.
Referenced by team::save_id(), and team::set_save_id().
bool team::team_info::scroll_to_leader |
Definition at line 133 of file team.hpp.
Referenced by team::get_scroll_to_leader(), and team::set_scroll_to_leader().
SHARE_VISION team::team_info::share_vision |
Definition at line 149 of file team.hpp.
Referenced by team::set_share_vision(), team::share_maps(), team::share_view(), and team::share_vision().
int team::team_info::side |
Definition at line 159 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), and team::side().
t_string team::team_info::side_name |
Definition at line 119 of file team.hpp.
Referenced by team::side_name().
int team::team_info::start_gold |
Definition at line 110 of file team.hpp.
Referenced by team::build(), team::set_start_gold(), and team::start_gold().
int team::team_info::support_per_village |
Definition at line 113 of file team.hpp.
Referenced by team::set_village_support(), and team::village_support().
std::string team::team_info::team_name |
Definition at line 117 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), team::change_team(), and team::team_name().
t_string team::team_info::user_team_name |
Definition at line 118 of file team.hpp.
Referenced by team::change_team(), and team::user_team_name().
config team::team_info::variables |
Definition at line 168 of file team.hpp.
Referenced by team::variables().