30 std::vector<battle_context>&& weapons,
31 const int best_weapon,
32 std::vector<gui2::widget_data>& bc_widget_data_vector);
42 virtual const std::string&
window_id()
const override;
Various functions that implement attacks and attack calculations.
Abstract base class for all modal dialogs.
virtual void post_show() override
Actions to be taken after the window has been shown.
int selected_weapon_
The index of the selected weapon.
unit_map::iterator defender_itor_
Iterator pointing to the defender.
int best_weapon_
The best weapon, aka the one high-lighted.
std::vector< gui2::widget_data > bc_widget_data_vector_
virtual void pre_show() override
Actions to be taken before showing the window.
unit_map::iterator attacker_itor_
Iterator pointing to the attacker.
void damage_calc_callback()
virtual const std::string & window_id() const override
The ID of the window to build.
int get_selected_weapon() const
std::vector< battle_context > weapons_
List of all battle contexts used for getting the weapons.