The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
team::team_info Struct Reference

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
 

Detailed Description

Definition at line 77 of file team.hpp.

Constructor & Destructor Documentation

◆ team_info()

team::team_info::team_info ( )

Definition at line 120 of file team.cpp.

Member Function Documentation

◆ handle_legacy_share_vision()

void team::team_info::handle_legacy_share_vision ( const config cfg)

Definition at line 268 of file team.cpp.

References config::has_attribute(), and team::share_vision().

Referenced by team::handle_legacy_share_vision().

◆ read()

void team::team_info::read ( const config cfg)

◆ write()

void team::team_info::write ( config cfg) const

Member Data Documentation

◆ action_bonus_count

int team::team_info::action_bonus_count

Definition at line 99 of file team.hpp.

◆ allow_player

bool team::team_info::allow_player

Definition at line 124 of file team.hpp.

◆ can_recruit

std::set<std::string> team::team_info::can_recruit

◆ carryover_add

bool team::team_info::carryover_add

Definition at line 137 of file team.hpp.

Referenced by team::carryover_add(), and team::set_carryover_add().

◆ carryover_bonus

double team::team_info::carryover_bonus

Definition at line 139 of file team.hpp.

Referenced by team::carryover_bonus(), and team::set_carryover_bonus().

◆ carryover_gold

int team::team_info::carryover_gold

Definition at line 140 of file team.hpp.

Referenced by team::carryover_gold(), and team::set_carryover_gold().

◆ carryover_percentage

int team::team_info::carryover_percentage

Definition at line 136 of file team.hpp.

Referenced by team::carryover_percentage(), and team::set_carryover_percentage().

◆ chose_random

bool team::team_info::chose_random

Definition at line 125 of file team.hpp.

Referenced by team::chose_random().

◆ color

std::string team::team_info::color

Definition at line 130 of file team.hpp.

Referenced by team::color(), and team::set_color().

◆ controller

side_controller::type team::team_info::controller

◆ countdown_time

std::string team::team_info::countdown_time

Definition at line 98 of file team.hpp.

◆ current_player

std::string team::team_info::current_player

◆ defeat_cond

defeat_condition::type team::team_info::defeat_cond

◆ disallow_observers

bool team::team_info::disallow_observers

Definition at line 123 of file team.hpp.

Referenced by team::get_disallow_observers().

◆ faction

std::string team::team_info::faction

Definition at line 93 of file team.hpp.

Referenced by team::faction().

◆ faction_name

t_string team::team_info::faction_name

Definition at line 94 of file team.hpp.

Referenced by team::faction_name().

◆ flag

std::string team::team_info::flag

Definition at line 101 of file team.hpp.

Referenced by team::flag(), and team::set_flag().

◆ flag_icon

std::string team::team_info::flag_icon

Definition at line 102 of file team.hpp.

Referenced by team::flag_icon(), and team::set_flag_icon().

◆ gold

int team::team_info::gold

Definition at line 82 of file team.hpp.

Referenced by team::build().

◆ hidden

bool team::team_info::hidden

Definition at line 127 of file team.hpp.

Referenced by team::hidden(), and team::set_hidden().

◆ id

std::string team::team_info::id

Definition at line 104 of file team.hpp.

◆ income

int team::team_info::income

Definition at line 84 of file team.hpp.

Referenced by team::base_income(), and team::set_base_income().

◆ income_per_village

int team::team_info::income_per_village

Definition at line 85 of file team.hpp.

Referenced by team::set_village_gold(), team::total_income(), and team::village_gold().

◆ is_local

bool team::team_info::is_local

Definition at line 116 of file team.hpp.

Referenced by team::is_local(), team::is_network(), and team::set_local().

◆ lost

bool team::team_info::lost

Definition at line 134 of file team.hpp.

Referenced by team::lost(), and team::set_lost().

◆ minimum_recruit_price

int team::team_info::minimum_recruit_price
mutable

Definition at line 87 of file team.hpp.

Referenced by team::add_recruit(), team::minimum_recruit_price(), and team::set_recruits().

◆ no_leader

bool team::team_info::no_leader

Definition at line 126 of file team.hpp.

Referenced by team::have_leader(), and team::no_leader().

◆ no_turn_confirmation

bool team::team_info::no_turn_confirmation

Definition at line 128 of file team.hpp.

Referenced by team::no_turn_confirmation(), and team::set_no_turn_confirmation().

◆ objectives

t_string team::team_info::objectives

Definition at line 108 of file team.hpp.

Referenced by team::objectives(), and team::set_objectives().

◆ objectives_changed

bool team::team_info::objectives_changed
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 113 of file team.hpp.

Referenced by team::objectives_changed(), team::reset_objectives_changed(), team::set_objectives(), and team::set_objectives_changed().

◆ persistent

bool team::team_info::persistent

Definition at line 133 of file team.hpp.

Referenced by team::persistent(), and team::set_persistent().

◆ proxy_controller

side_proxy_controller::type team::team_info::proxy_controller

◆ recall_cost

int team::team_info::recall_cost

Definition at line 88 of file team.hpp.

Referenced by team::recall_cost(), and team::set_recall_cost().

◆ save_id

std::string team::team_info::save_id

Definition at line 95 of file team.hpp.

Referenced by team::save_id(), team::save_id_or_number(), and team::set_save_id().

◆ scroll_to_leader

bool team::team_info::scroll_to_leader

Definition at line 106 of file team.hpp.

Referenced by team::get_scroll_to_leader(), and team::set_scroll_to_leader().

◆ share_vision

team_shared_vision::type team::team_info::share_vision

◆ side

int team::team_info::side

◆ side_name

t_string team::team_info::side_name

Definition at line 92 of file team.hpp.

Referenced by team::set_side_name(), team::side_name(), and team::side_name_tstr().

◆ start_gold

int team::team_info::start_gold

Definition at line 83 of file team.hpp.

Referenced by team::build(), team::set_start_gold(), and team::start_gold().

◆ support_per_village

int team::team_info::support_per_village

Definition at line 86 of file team.hpp.

Referenced by team::set_village_support(), and team::village_support().

◆ team_name

std::string team::team_info::team_name

Definition at line 90 of file team.hpp.

Referenced by team::build(), team::calculate_is_enemy(), team::change_team(), and team::team_name().

◆ user_team_name

t_string team::team_info::user_team_name

Definition at line 91 of file team.hpp.

Referenced by team::change_team(), and team::user_team_name().

◆ variables

config team::team_info::variables

Definition at line 141 of file team.hpp.

Referenced by team::variables().


The documentation for this struct was generated from the following files: