14 #ifndef DIALOGS_H_INCLUDED
15 #define DIALOGS_H_INCLUDED
31 #include <boost/shared_ptr.hpp>
96 virtual size_t size()
const = 0;
sdl_handler_vector handler_members()
std::unique_ptr< twesnothd_connection > network_connect_dialog(CVideo &video, const std::string &msg, const std::string &hostname, int port)
std::vector< events::sdl_handler * > sdl_handler_vector
int recall_dialog(display &disp, const boost::shared_ptr< std::vector< unit_const_ptr > > &units, int side, const std::string &title_suffix, const int team_recall_cost)
int recruit_dialog(display &disp, std::vector< const unit_type * > &units, const std::vector< std::string > &items, int side, const std::string &title_suffix)
unit_types_preview_pane(std::vector< const unit_type * > &unit_types, const gui::filter_textbox *filterbox=nullptr, int side=1, TYPE type=SHOW_ALL, bool left_side=true)
GLuint GLuint GLsizei GLenum type
const details get_details() const
unit_type_data unit_types
const std::vector< std::string > items
int advance_unit_dialog(const map_location &loc)
Lets the user to select a unit advancement.
units_list_preview_pane(unit_const_ptr u, TYPE type=SHOW_ALL, bool left_side=true)
A class that represents a TCP/IP connection to the wesnothd server.
bool animate_unit_advancement(const map_location &loc, size_t choice, const bool &fire_event, const bool animate)
Actually levels a unit up.
unit_preview_pane(const gui::filter_textbox *filter=nullptr, TYPE type=SHOW_ALL, bool left_side=true)
void show_unit_list(display &gui)
Show unit-stats in a side-pane to unit-list, recall-list, etc.
Various uncategorised dialogs.
Encapsulates the map of the game.
bool network_receive_dialog(CVideo &video, const std::string &msg, config &cfg, twesnothd_connection &wesnothd_connection)
std::vector< std::string > overlays
boost::shared_ptr< const std::vector< unit_const_ptr > > units_
gui::button details_button_
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
bool fire_event(const tevent event, std::vector< std::pair< twidget *, tevent > > &event_chain, twidget *dispatcher, twidget *widget, F functor)
Helper function for fire_event.
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
void set_selection(int index)
virtual size_t size() const =0
std::vector< const unit_type * > * unit_types_
const details get_details() const
virtual const details get_details() const =0
std::vector< t_string > abilities
virtual void process_event()=0
std::vector< attack_type > attacks
Container associating units to locations.
const gui::filter_textbox * filter_
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
void show_objectives(const std::string &scenarioname, const std::string &objectives)