Various dialogs: advance_unit, show_objectives, save+load game, network::connection. More...
#include "global.hpp"#include "actions.hpp"#include "dialogs.hpp"#include "foreach.hpp"#include "game_events.hpp"#include "game_display.hpp"#include "game_preferences.hpp"#include "gui/dialogs/game_delete.hpp"#include "gettext.hpp"#include "help.hpp"#include "language.hpp"#include "log.hpp"#include "map.hpp"#include "map_exception.hpp"#include "marked-up_text.hpp"#include "menu_events.hpp"#include "mouse_handler_base.hpp"#include "minimap.hpp"#include "replay.hpp"#include "resources.hpp"#include "savegame.hpp"#include "thread.hpp"#include "unit_helper.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 <clocale>
Go to the source code of this file.
Namespaces | |
| namespace | dialogs |
Various uncategorised dialogs. | |
Defines | |
| #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. | |
| void | dialogs::advance_unit (const map_location &loc, bool random_choice=false, bool add_replay_event=false) |
| Function to handle an advancing unit. | |
| bool | dialogs::animate_unit_advancement (const map_location &loc, size_t choice, const bool &fire_event=true) |
| Actually levels a unit up. | |
| void | dialogs::show_objectives (const config &level, const std::string &objectives) |
| std::string | dialogs::load_game_dialog (display &disp, const config &terrain_config, bool *select_difficulty, bool *show_replay, bool *cancel_orders) |
| Allow user to select the game they want to load. | |
| void | dialogs::show_unit_description (const unit &u) |
| void | dialogs::show_unit_description (const unit_type &t) |
| static network::connection | dialogs::network_data_dialog (display &disp, const std::string &msg, config &cfg, network::connection connection_num, network::statistics(*get_stats)(network::connection handle)) |
| network::connection | dialogs::network_send_dialog (display &disp, const std::string &msg, config &cfg, network::connection connection_num) |
| network::connection | dialogs::network_receive_dialog (display &disp, const std::string &msg, config &cfg, network::connection connection_num) |
| network::connection | dialogs::network_connect_dialog (display &disp, 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, network::connection.
Definition in file dialogs.cpp.
| #define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 69 of file dialogs.cpp.
| #define ERR_G LOG_STREAM(err, lg::general) |
Definition at line 66 of file dialogs.cpp.
| #define ERR_NG LOG_STREAM(err, log_engine) |
Definition at line 61 of file dialogs.cpp.
| #define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 64 of file dialogs.cpp.
| #define LOG_NG LOG_STREAM(info, log_engine) |
Definition at line 60 of file dialogs.cpp.
Definition at line 280 of file dialogs.cpp.
Definition at line 282 of file dialogs.cpp.
| const config* game_config_ |
Definition at line 341 of file dialogs.cpp.
| int index_ |
Definition at line 344 of file dialogs.cpp.
| const std::vector<savegame::save_info>* info_ |
Definition at line 343 of file dialogs.cpp.
lg::log_domain log_config("config") [static] |
lg::log_domain log_display("display") [static] |
lg::log_domain log_engine("engine") [static] |
Definition at line 342 of file dialogs.cpp.
Referenced by ai::testing_ai_default::testing_move_to_targets_phase::access_points(), ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), ai::testing_ai_default::average_resistance_against(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::ai_default_recruitment_stage::average_resistance_against(), ai::testing_ai_default::testing_move_to_targets_phase::choose_move(), ai::testing_ai_default::aspect_attacks::do_attack_analysis(), ai::testing_ai_default::goto_phase::evaluate(), ai::testing_ai_default::recruitment_phase::execute(), ai::default_ai_context_impl::find_targets(), ai::testing_ai_default::get_villages_phase::find_villages(), ai::testing_ai_default::testing_move_to_targets_phase::move_group(), ai::readonly_context_impl::power_projection(), ai::testing_ai_default::testing_move_to_targets_phase::rate_group(), ai::testing_ai_default::aspect_attacks::rate_terrain(), and ai::default_ai_context_impl::rate_terrain().
| std::map<std::string,surface> map_cache_ |
Definition at line 345 of file dialogs.cpp.
| std::vector<savegame::save_info>& saves_ |
Definition at line 281 of file dialogs.cpp.
| const gui::filter_textbox& textbox_ |
Definition at line 346 of file dialogs.cpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:03:46 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |