15 #ifndef GUI_DIALOGS_UNIT_ATTACK_HPP_INCLUDED
16 #define GUI_DIALOGS_UNIT_ATTACK_HPP_INCLUDED
30 const std::vector<battle_context>& weapons,
31 const int best_weapon);
void post_show(twindow &window)
Inherited from tdialog.
Various functions that implement attacks and attack calculations.
void damage_calc_callback(twindow &window)
GLuint GLuint GLsizei GLenum type
int best_weapon_
The best weapon, aka the one high-lighted.
std::vector< battle_context > weapons_
List of all battle contexts used for getting the weapons.
int selected_weapon_
The index of the selected weapon.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
Abstract base class for all dialogs.
void pre_show(twindow &window)
Inherited from tdialog.
unit_map::iterator attacker_itor_
Iterator pointing to the attacker.
void profile_button_callback(twindow &window, const std::string &type)
tunit_attack(const unit_map::iterator &attacker_itor, const unit_map::iterator &defender_itor, const std::vector< battle_context > &weapons, const int best_weapon)
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
int get_selected_weapon() const
unit_map::iterator defender_itor_
Iterator pointing to the defender.
GLsizei const GLcharARB ** string