Public Member Functions | |
team_builder (const config &side_cfg, std::vector< team > &teams, const config &level, game_board &board) | |
void | build_team_stage_one () |
void | build_team_stage_two () |
Protected Member Functions | |
void | log_step (const char *s) const |
void | init () |
void | gold () |
void | new_team () |
void | objectives () |
void | previous_recruits () |
void | handle_unit (const config &u, const char *origin) |
void | handle_leader (const config &leader) |
void | leader () |
void | prepare_units () |
void | place_units () |
Protected Attributes | |
int | gold_info_ngold_ |
std::deque< config > | leader_configs_ |
const config & | level_ |
game_board & | board_ |
bool | player_exists_ |
std::set< std::string > | seen_ids_ |
int | side_ |
const config & | side_cfg_ |
team * | t_ |
std::vector< team > & | teams_ |
std::vector< const config * > | unit_configs_ |
Definition at line 38 of file teambuilder.cpp.
|
inline |
Definition at line 40 of file teambuilder.cpp.
|
inline |
Definition at line 56 of file teambuilder.cpp.
References gold(), init(), leader(), new_team(), objectives(), prepare_units(), previous_recruits(), and t_.
|
inline |
Definition at line 84 of file teambuilder.cpp.
References place_units().
|
inlineprotected |
Definition at line 148 of file teambuilder.cpp.
References DBG_NG_TC, and log_step().
Referenced by build_team_stage_one().
Definition at line 230 of file teambuilder.cpp.
References team::attributes, config::attribute_value::blank(), handle_unit(), and config::remove_attribute().
Referenced by leader().
Definition at line 193 of file teambuilder.cpp.
References recall_list_manager::add(), DBG_NG_TC, config::debug(), team::recall_list(), and WRN_NG_TC.
Referenced by handle_leader(), and prepare_units().
|
inlineprotected |
Definition at line 114 of file teambuilder.cpp.
References DBG_NG_TC, gamemap::empty(), error(), log_step(), game_board::map(), and side_.
Referenced by build_team_stage_one().
|
inlineprotected |
Definition at line 251 of file teambuilder.cpp.
References config::child_range(), handle_leader(), config::has_attribute(), and log_step().
Referenced by build_team_stage_one().
|
inlineprotected |
Definition at line 108 of file teambuilder.cpp.
References LOG_NG_TC.
Referenced by gold(), init(), leader(), new_team(), objectives(), place_units(), and previous_recruits().
|
inlineprotected |
Definition at line 158 of file teambuilder.cpp.
References team::build(), gold_info_ngold_, log_step(), and game_board::map().
Referenced by build_team_stage_one().
|
inlineprotected |
Definition at line 165 of file teambuilder.cpp.
References t_string::empty(), log_step(), team::objectives(), and team::set_objectives().
Referenced by build_team_stage_one().
|
inlineprotected |
Definition at line 284 of file teambuilder.cpp.
References unit_creator::add_unit(), unit_creator::allow_add_to_recall(), unit_creator::allow_discover(), unit_creator::allow_get_village(), unit_creator::allow_invalidate(), unit_creator::allow_rename_side(), unit_creator::allow_show(), board_, log_step(), game_board::map(), and gamemap::starting_position().
Referenced by build_team_stage_two().
|
inlineprotected |
Definition at line 269 of file teambuilder.cpp.
References config::child_range(), and handle_unit().
Referenced by build_team_stage_one().
|
inlineprotected |
Definition at line 176 of file teambuilder.cpp.
References team::add_recruit(), DBG_NG_TC, config::get(), log_step(), and utils::split().
Referenced by build_team_stage_one().
|
protected |
Definition at line 98 of file teambuilder.cpp.
Referenced by place_units().
|
protected |
Definition at line 94 of file teambuilder.cpp.
Referenced by new_team().
|
protected |
Definition at line 95 of file teambuilder.cpp.
|
protected |
Definition at line 97 of file teambuilder.cpp.
|
protected |
Definition at line 100 of file teambuilder.cpp.
|
protected |
Definition at line 101 of file teambuilder.cpp.
|
protected |
Definition at line 102 of file teambuilder.cpp.
Referenced by init().
|
protected |
Definition at line 103 of file teambuilder.cpp.
|
protected |
Definition at line 104 of file teambuilder.cpp.
Referenced by build_team_stage_one().
|
protected |
Definition at line 105 of file teambuilder.cpp.
|
protected |
Definition at line 106 of file teambuilder.cpp.