#include <team.hpp>

Public Types | |
| enum | CONTROLLER { HUMAN, HUMAN_AI, AI, NETWORK, NETWORK_AI, EMPTY } |
Public Member Functions | |
| team_info () | |
| void | read (const config &cfg) |
| void | write (config &cfg) const |
| char const * | controller_string () const |
Public Attributes | |
| std::string | name |
| int | gold |
| int | start_gold |
| bool | gold_add |
| 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 |
| 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 | description |
| bool | scroll_to_leader |
| t_string | objectives |
| bool | objectives_changed |
| < Team's objectives for the current level. | |
| CONTROLLER | controller |
| bool | share_maps |
| bool | share_view |
| bool | disallow_observers |
| bool | allow_player |
| bool | no_leader |
| bool | hidden |
| std::string | music |
| std::string | color |
| int | side |
| bool | persistent |
Definition at line 60 of file team.hpp.
| char const * team::team_info::controller_string | ( | ) | const |
Definition at line 215 of file team.cpp.
References AI, controller, EMPTY, HUMAN, HUMAN_AI, NETWORK, and NETWORK_AI.
Referenced by team::controller_string(), and write().

| void team::team_info::read | ( | const config & | cfg | ) |
Definition at line 90 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, color, controller, countdown_time, current_player, team::default_team_gold, description, disallow_observers, flag, flag_icon, t_string::from_serialized(), gold, config::has_attribute(), hidden, income, income_per_village, LOG_NG, music, name, no_leader, objectives, objectives_changed, persistent, game_config::recall_cost, recall_cost, team::recruits(), save_id, scroll_to_leader, share_maps, share_view, side, utils::split(), start_gold, string2rgb(), support_per_village, team::team_color_range_, team_name, game_config::team_rgb_range, t_string::translatable(), user_team_name, game_config::village_income, game_config::village_support, team::village_support(), and WRN_NG.
Referenced by team::build().


| void team::team_info::write | ( | config & | cfg | ) | const |
Definition at line 228 of file team.cpp.
References action_bonus_count, config::add_child(), allow_player, can_recruit, color, controller_string(), countdown_time, current_player, description, disallow_observers, flag, flag_icon, gold, gold_add, hidden, income, income_per_village, music, name, no_leader, objectives, objectives_changed, persistent, recall_cost, save_id, scroll_to_leader, share_maps, share_view, side, start_gold, support_per_village, team_name, ai::manager::to_config(), and user_team_name.
Referenced by team::write().


| std::set<std::string> team::team_info::can_recruit |
Definition at line 74 of file team.hpp.
Referenced by team::add_recruit(), team::log_recruitable(), team::minimum_recruit_price(), read(), team::recruits(), team::set_recruits(), and write().
| std::string team::team_info::color |
Definition at line 109 of file team.hpp.
Referenced by team::color(), read(), team::set_color(), and write().
Definition at line 98 of file team.hpp.
Referenced by team::change_controller(), team::controller(), controller_string(), team::is_ai(), team::is_empty(), team::is_human(), team::is_human_ai(), team::is_network_ai(), team::is_network_human(), team::make_ai(), team::make_human(), team::make_human_ai(), team::make_network(), team::make_network_ai(), and read().
| std::string team::team_info::countdown_time |
| std::string team::team_info::current_player |
Definition at line 79 of file team.hpp.
Referenced by team::current_player(), read(), team::set_current_player(), and write().
| std::string team::team_info::description |
Definition at line 102 of file team.hpp.
Referenced by team::get_disallow_observers(), read(), and write().
| std::string team::team_info::flag |
Definition at line 83 of file team.hpp.
Referenced by team::flag(), read(), and write().
| std::string team::team_info::flag_icon |
Definition at line 84 of file team.hpp.
Referenced by team::flag_icon(), read(), and write().
Definition at line 66 of file team.hpp.
Referenced by team::build(), read(), and write().
Definition at line 68 of file team.hpp.
Referenced by team::gold_add(), team::set_gold_add(), and write().
Definition at line 105 of file team.hpp.
Referenced by team::hidden(), read(), team::set_hidden(), and write().
Definition at line 69 of file team.hpp.
Referenced by team::base_income(), read(), team::set_base_income(), and write().
Definition at line 70 of file team.hpp.
Referenced by read(), team::set_village_gold(), team::total_income(), team::village_gold(), and write().
int team::team_info::minimum_recruit_price [mutable] |
Definition at line 72 of file team.hpp.
Referenced by team::add_recruit(), team::minimum_recruit_price(), and team::set_recruits().
| std::string team::team_info::music |
| std::string team::team_info::name |
Definition at line 65 of file team.hpp.
Referenced by team::name(), read(), and write().
Definition at line 104 of file team.hpp.
Referenced by team::have_leader(), team::no_leader(), read(), and write().
Definition at line 90 of file team.hpp.
Referenced by team::objectives(), read(), team::set_objectives(), and write().
< 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 95 of file team.hpp.
Referenced by team::objectives_changed(), read(), team::reset_objectives_changed(), team::set_objectives(), team::set_objectives_changed(), and write().
Definition at line 112 of file team.hpp.
Referenced by team::persistent(), read(), and write().
Definition at line 73 of file team.hpp.
Referenced by read(), team::recall_cost(), team::set_recall_cost(), and write().
| std::string team::team_info::save_id |
Definition at line 77 of file team.hpp.
Referenced by read(), team::save_id(), and write().
Definition at line 88 of file team.hpp.
Referenced by team::get_scroll_to_leader(), read(), and write().
Definition at line 101 of file team.hpp.
Referenced by read(), team::set_share_maps(), team::share_maps(), and write().
Definition at line 101 of file team.hpp.
Referenced by read(), team::set_share_maps(), team::set_share_view(), team::share_view(), and write().
Definition at line 111 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), read(), team::side(), and write().
Definition at line 67 of file team.hpp.
Referenced by team::build(), read(), team::start_gold(), and write().
Definition at line 71 of file team.hpp.
Referenced by read(), team::set_village_support(), team::village_support(), and write().
| std::string team::team_info::team_name |
Definition at line 75 of file team.hpp.
Referenced by team::build(), team::calculate_is_enemy(), team::change_team(), read(), team::team_name(), and write().
Definition at line 76 of file team.hpp.
Referenced by team::change_team(), read(), team::user_team_name(), and write().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:31 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |