Various dialogs: advance_unit, show_objectives, save+load game. More...
#include "global.hpp"
#include "actions/attack.hpp"
#include "actions/undo.hpp"
#include "dialogs.hpp"
#include "format_time_summary.hpp"
#include "game_display.hpp"
#include "game_preferences.hpp"
#include "gui/dialogs/game_delete.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/window.hpp"
#include "gettext.hpp"
#include "help/help.hpp"
#include "help/help_button.hpp"
#include "language.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "map/exception.hpp"
#include "marked-up_text.hpp"
#include "menu_events.hpp"
#include "mouse_handler_base.hpp"
#include "minimap.hpp"
#include "recall_list_manager.hpp"
#include "replay.hpp"
#include "replay_helper.hpp"
#include "resources.hpp"
#include "savegame.hpp"
#include "save_index.hpp"
#include "strftime.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "units/unit.hpp"
#include "units/animation.hpp"
#include "units/helper.hpp"
#include "units/types.hpp"
#include "wml_separators.hpp"
#include "widgets/progressbar.hpp"
#include "wml_exception.hpp"
#include "formula/string_utils.hpp"
#include "gui/dialogs/game_save.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/dialogs/network_transmission.hpp"
#include "ai/lua/aspect_advancements.hpp"
#include "wesnothd_connection.hpp"
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <clocale>
Go to the source code of this file.
Classes | |
struct | dialogs::read_wesnothd_connection_data |
struct | dialogs::connect_wesnothd_connection_data |
Namespaces | |
dialogs | |
Various uncategorised dialogs. | |
Macros | |
#define | LOG_NG LOG_STREAM(info, log_engine) |
#define | ERR_NG LOG_STREAM(err, log_engine) |
#define | LOG_DP LOG_STREAM(info, log_display) |
#define | ERR_G LOG_STREAM(err, lg::general) |
#define | ERR_CF LOG_STREAM(err, log_config) |
Functions | |
int | dialogs::advance_unit_dialog (const map_location &loc) |
Lets the user to select a unit advancement. More... | |
bool | dialogs::animate_unit_advancement (const map_location &loc, size_t choice, const bool &fire_event=true, const bool animate=true) |
Actually levels a unit up. More... | |
void | dialogs::show_unit_list (display &gui) |
void | dialogs::show_objectives (const std::string &scenarioname, const std::string &objectives) |
int | dialogs::recruit_dialog (display &disp, std::vector< const unit_type * > &units, const std::vector< std::string > &items, int side, const std::string &title_suffix) |
int | dialogs::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) |
static void | dialogs::network_transmission_dialog (CVideo &video, gui2::tnetwork_transmission::connection_data &conn, const std::string &msg1, const std::string &msg2) |
bool | dialogs::network_receive_dialog (CVideo &video, const std::string &msg, config &cfg, twesnothd_connection &wesnothd_connection) |
std::unique_ptr < twesnothd_connection > | dialogs::network_connect_dialog (CVideo &video, const std::string &msg, const std::string &hostname, int port) |
Variables | |
static lg::log_domain | log_engine ("engine") |
static lg::log_domain | log_display ("display") |
static lg::log_domain | log_config ("config") |
Various dialogs: advance_unit, show_objectives, save+load game.
Definition in file dialogs.cpp.
#define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 83 of file dialogs.cpp.
#define ERR_G LOG_STREAM(err, lg::general) |
Definition at line 80 of file dialogs.cpp.
#define ERR_NG LOG_STREAM(err, log_engine) |
Definition at line 75 of file dialogs.cpp.
#define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 78 of file dialogs.cpp.
#define LOG_NG LOG_STREAM(info, log_engine) |
Definition at line 74 of file dialogs.cpp.
display& disp_ |
Definition at line 98 of file dialogs.cpp.
gui::filter_textbox& filter_ |
Definition at line 99 of file dialogs.cpp.
|
static |
|
static |
|
static |
boost::shared_ptr<std::vector<unit_const_ptr > > units_ |
Definition at line 100 of file dialogs.cpp.
Referenced by ai::ai_default_rca::move_to_targets_phase::access_points(), ai::ai_default_rca::aspect_attacks_base::analyze_targets(), ai::ai_default_rca::move_to_targets_phase::choose_move(), ai::default_ai_context_impl::count_free_hexes_in_castle(), ai::ai_default_rca::aspect_attacks_base::do_attack_analysis(), ai::stage_unit_formulas::do_play_stage(), ai::ai_default_rca::goto_phase::evaluate(), ai::ai_default_rca::move_leader_to_keep_phase::evaluate(), ai::ai_default_rca::get_healing_phase::evaluate(), ai::ai_default_rca::retreat_phase::evaluate(), ai::ai_default_rca::get_villages_phase::execute(), ai::default_ai_context_impl::find_targets(), ai::ai_default_rca::move_to_targets_phase::form_group(), ai::ai_default_rca::get_villages_phase::get_villages(), ai::ai_default_rca::move_to_targets_phase::move_group(), ai::readonly_context_impl::power_projection(), ai::ai_default_rca::move_to_targets_phase::rate_group(), and ai::formula_ai::shortest_path_calculator().