The Battle for Wesnoth  1.19.7+dev
battle_context Member List

This is the complete list of members for battle_context, including all inherited members.

attacker_combatant_battle_contextprivate
attacker_stats_battle_contextprivate
battle_context(const unit_map &units, const map_location &attacker_loc, const map_location &defender_loc, int attacker_weapon=-1, int defender_weapon=-1, double aggression=0.0, const combatant *prev_def=nullptr, unit_const_ptr attacker_ptr=unit_const_ptr(), unit_const_ptr defender_ptr=unit_const_ptr())battle_context
battle_context(const battle_context_unit_stats &att, const battle_context_unit_stats &def)battle_context
battle_context(battle_context &&other)=defaultbattle_context
battle_context(nonempty_unit_const_ptr attacker, const map_location &attacker_loc, int attacker_weapon, nonempty_unit_const_ptr defender, const map_location &defender_loc, int defender_weapon)battle_contextprivate
better_attack(class battle_context &that, double harm_weight)battle_context
better_combat(const combatant &us_a, const combatant &them_a, const combatant &us_b, const combatant &them_b, double harm_weight)battle_contextstatic
better_defense(class battle_context &that, double harm_weight)battle_context
choose_attacker_weapon(nonempty_unit_const_ptr attacker, const nonempty_unit_const_ptr &defender, const map_location &attacker_loc, const map_location &defender_loc, double harm_weight, const combatant *prev_def)battle_contextprivatestatic
choose_defender_weapon(nonempty_unit_const_ptr attacker, nonempty_unit_const_ptr defender, unsigned attacker_weapon, const map_location &attacker_loc, const map_location &defender_loc, const combatant *prev_def)battle_contextprivatestatic
defender_combatant_battle_contextprivate
defender_stats_battle_contextprivate
get_attacker_combatant(const combatant *prev_def=nullptr)battle_context
get_attacker_stats() constbattle_contextinline
get_defender_combatant(const combatant *prev_def=nullptr)battle_context
get_defender_stats() constbattle_contextinline
operator=(battle_context &&other)=defaultbattle_context
simulate(const combatant *prev_def)battle_context