The Battle for Wesnoth  1.15.2+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...
 
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
 

Detailed Description

Definition at line 98 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 269 of file team.cpp.

References config::has_attribute(), gui2::NONE, and share_vision.

Referenced by read().

◆ 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 120 of file team.hpp.

Referenced by read(), and write().

◆ allow_player

bool team::team_info::allow_player

Definition at line 145 of file team.hpp.

Referenced by read(), and write().

◆ can_recruit

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

◆ carryover_add

bool team::team_info::carryover_add

Definition at line 158 of file team.hpp.

Referenced by read(), and write().

◆ carryover_bonus

double team::team_info::carryover_bonus

Definition at line 160 of file team.hpp.

Referenced by read(), and write().

◆ carryover_gold

int team::team_info::carryover_gold

Definition at line 161 of file team.hpp.

Referenced by read(), and write().

◆ carryover_percentage

int team::team_info::carryover_percentage

Definition at line 157 of file team.hpp.

Referenced by read(), and write().

◆ chose_random

bool team::team_info::chose_random

Definition at line 146 of file team.hpp.

Referenced by read(), and write().

◆ color

std::string team::team_info::color

Definition at line 151 of file team.hpp.

Referenced by read(), and write().

◆ controller

CONTROLLER team::team_info::controller

Definition at line 136 of file team.hpp.

Referenced by read(), and write().

◆ countdown_time

std::string team::team_info::countdown_time

Definition at line 119 of file team.hpp.

Referenced by read(), and write().

◆ current_player

std::string team::team_info::current_player

Definition at line 118 of file team.hpp.

Referenced by read(), and write().

◆ defeat_condition

DEFEAT_CONDITION team::team_info::defeat_condition

Definition at line 138 of file team.hpp.

Referenced by read(), and write().

◆ disallow_observers

bool team::team_info::disallow_observers

Definition at line 144 of file team.hpp.

Referenced by read(), and write().

◆ faction

std::string team::team_info::faction

Definition at line 114 of file team.hpp.

Referenced by read(), and write().

◆ faction_name

t_string team::team_info::faction_name

Definition at line 115 of file team.hpp.

Referenced by read(), and write().

◆ flag

std::string team::team_info::flag

Definition at line 122 of file team.hpp.

Referenced by read(), and write().

◆ flag_icon

std::string team::team_info::flag_icon

Definition at line 123 of file team.hpp.

Referenced by read(), and write().

◆ gold

int team::team_info::gold

Definition at line 103 of file team.hpp.

Referenced by team::build(), read(), and write().

◆ hidden

bool team::team_info::hidden

Definition at line 148 of file team.hpp.

Referenced by read(), and write().

◆ id

std::string team::team_info::id

Definition at line 125 of file team.hpp.

Referenced by read(), and write().

◆ income

int team::team_info::income

Definition at line 105 of file team.hpp.

Referenced by read(), and write().

◆ income_per_village

int team::team_info::income_per_village

Definition at line 106 of file team.hpp.

Referenced by read(), and write().

◆ is_local

bool team::team_info::is_local

Definition at line 137 of file team.hpp.

Referenced by read().

◆ lost

bool team::team_info::lost

Definition at line 155 of file team.hpp.

Referenced by read(), and write().

◆ minimum_recruit_price

int team::team_info::minimum_recruit_price
mutable

Definition at line 108 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 147 of file team.hpp.

Referenced by read(), and write().

◆ no_turn_confirmation

bool team::team_info::no_turn_confirmation

Definition at line 149 of file team.hpp.

Referenced by read(), and write().

◆ objectives

t_string team::team_info::objectives

Definition at line 129 of file team.hpp.

Referenced by read(), team::set_objectives(), and write().

◆ 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 134 of file team.hpp.

Referenced by read(), team::set_objectives(), and write().

◆ persistent

bool team::team_info::persistent

Definition at line 154 of file team.hpp.

Referenced by read(), and write().

◆ proxy_controller

PROXY_CONTROLLER team::team_info::proxy_controller

Definition at line 140 of file team.hpp.

◆ recall_cost

int team::team_info::recall_cost

Definition at line 109 of file team.hpp.

Referenced by read(), and write().

◆ save_id

std::string team::team_info::save_id

Definition at line 116 of file team.hpp.

Referenced by read(), and write().

◆ scroll_to_leader

bool team::team_info::scroll_to_leader

Definition at line 127 of file team.hpp.

Referenced by read(), and write().

◆ share_vision

SHARE_VISION team::team_info::share_vision

Definition at line 143 of file team.hpp.

Referenced by handle_legacy_share_vision(), read(), and write().

◆ side

int team::team_info::side

Definition at line 153 of file team.hpp.

Referenced by team::build(), team::calculate_is_enemy(), read(), and write().

◆ side_name

t_string team::team_info::side_name

Definition at line 113 of file team.hpp.

Referenced by read(), and write().

◆ start_gold

int team::team_info::start_gold

Definition at line 104 of file team.hpp.

Referenced by team::build(), read(), and write().

◆ support_per_village

int team::team_info::support_per_village

Definition at line 107 of file team.hpp.

Referenced by read(), and write().

◆ team_name

std::string team::team_info::team_name

Definition at line 111 of file team.hpp.

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

◆ user_team_name

t_string team::team_info::user_team_name

Definition at line 112 of file team.hpp.

Referenced by team::change_team(), read(), and write().

◆ variables

config team::team_info::variables

Definition at line 162 of file team.hpp.

Referenced by read(), and write().


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