#include <menu_events.hpp>
Public Member Functions | |
menu_handler (game_display *gui, play_controller &pc) | |
virtual | ~menu_handler () |
gui::floating_textbox & | get_textbox () |
void | set_gui (game_display *gui) |
void | objectives () |
void | show_statistics (int side_num) |
void | unit_list () |
void | status_table () |
void | save_map () |
void | preferences () |
void | show_chat_log () |
void | show_help () |
void | speak () |
void | whisper () |
void | shout () |
void | recruit (int side_num, const map_location &last_hex) |
void | repeat_recruit (int side_num, const map_location &last_hex) |
void | recall (int side_num, const map_location &last_hex) |
void | show_enemy_moves (bool ignore_units, int side_num) |
void | toggle_shroud_updates (int side_num) |
void | update_shroud_now (int side_num) |
bool | end_turn (int side_num) |
void | goto_leader (int side_num) |
void | unit_description () |
void | terrain_description (mouse_handler &mousehandler) |
void | rename_unit () |
void | create_unit (mouse_handler &mousehandler) |
Creates a unit (in debug mode via hotkey or context menu). More... | |
void | change_side (mouse_handler &mousehandler) |
void | kill_unit (mouse_handler &mousehandler) |
void | label_terrain (mouse_handler &mousehandler, bool team_only) |
void | clear_labels () |
void | label_settings () |
void | continue_move (mouse_handler &mousehandler, int side_num) |
void | execute_gotos (mouse_handler &mousehandler, int side_num) |
void | toggle_ellipses () |
void | toggle_grid () |
void | unit_hold_position (mouse_handler &mousehandler, int side_num) |
void | end_unit_turn (mouse_handler &mousehandler, int side_num) |
void | search () |
void | request_control_change (int side_num, const std::string &player) |
void | user_command () |
void | custom_command () |
void | ai_formula () |
virtual void | clear_messages () override |
std::vector< std::string > | get_commands_list () |
unit_map::iterator | current_unit () |
unit_map::const_iterator | current_unit () const |
void | move_unit_to_loc (const unit_map::iterator &ui, const map_location &target, bool continue_move, int side_num, mouse_handler &mousehandler) |
t_string | can_recruit (const std::string &name, int side_num, map_location &target_hex, map_location &recruited_from) |
bool | do_recruit (const std::string &name, int side_num, map_location &target_hex) |
void | do_speak () |
void | do_search (const std::string &new_search) |
void | do_command (const std::string &str) |
void | do_ai_formula (const std::string &str, int side_num, mouse_handler &mousehandler) |
void | send_to_server (const config &cfg) override |
game_state & | gamestate () const |
game_data & | gamedata () |
game_board & | board () const |
Protected Member Functions | |
void | add_chat_message (const std::time_t &time, const std::string &speaker, int side, const std::string &message, events::chat_handler::MESSAGE_TYPE type=events::chat_handler::MESSAGE_PRIVATE) override |
void | send_chat_message (const std::string &message, bool allies_only=false) override |
Private Member Functions | |
bool | has_friends () const |
![]() | |
chat_handler () | |
virtual | ~chat_handler () |
void | send_command (const std::string &cmd, const std::string &args="") |
void | do_speak (const std::string &message, bool allies_only=false) |
virtual void | send_whisper (const std::string &receiver, const std::string &message) |
virtual void | add_whisper_sent (const std::string &receiver, const std::string &message) |
virtual void | add_whisper_received (const std::string &sender, const std::string &message) |
virtual void | send_chat_room_message (const std::string &room, const std::string &message) |
virtual void | add_chat_room_message_sent (const std::string &room, const std::string &message) |
virtual void | add_chat_room_message_received (const std::string &room, const std::string &speaker, const std::string &message) |
virtual void | user_relation_changed (const std::string &name) |
Called when a processed command results in a relation (friend/ignore) change for a user whose name is passed as the 'name' arg. More... | |
void | change_logging (const std::string &data) |
Change the log level of a log domain. More... | |
Private Attributes | |
game_display * | gui_ |
play_controller & | pc_ |
const game_config_view & | game_config_ |
gui::floating_textbox | textbox_info_ |
std::string | last_search_ |
map_location | last_search_hit_ |
Friends | |
class | console_handler |
Additional Inherited Members | |
![]() | |
enum | MESSAGE_TYPE { MESSAGE_PUBLIC, MESSAGE_PRIVATE } |
Definition at line 48 of file menu_events.hpp.
events::menu_handler::menu_handler | ( | game_display * | gui, |
play_controller & | pc | ||
) |
Definition at line 95 of file menu_events.cpp.
|
virtual |
Definition at line 105 of file menu_events.cpp.
|
overrideprotectedvirtual |
Implements events::chat_handler.
Definition at line 1061 of file menu_events.cpp.
References display_chat_manager::add_chat_message(), plugins_manager::get(), game_display::get_chat_manager(), gui_, preferences::login(), events::chat_handler::MESSAGE_PRIVATE, and plugins_manager::notify_event().
Referenced by do_ai_formula(), and send_chat_message().
void events::menu_handler::ai_formula | ( | ) |
Definition at line 2150 of file menu_events.cpp.
References gui_, play_controller::is_networked_mp(), pc_, translation::sgettext(), gui::floating_textbox::show(), gui::TEXTBOX_AI, and textbox_info_.
Referenced by playsingle_controller::hotkey_handler::ai_formula().
game_board & events::menu_handler::board | ( | ) | const |
Definition at line 119 of file menu_events.cpp.
References game_state::board_, and gamestate().
Referenced by can_recruit(), change_side(), clear_labels(), current_unit(), do_recruit(), end_turn(), execute_gotos(), has_friends(), gui2::dialogs::mp_change_control::highlight_side_nick(), label_settings(), move_unit_to_loc(), gui2::dialogs::mp_change_control::pre_show(), recall(), recruit(), repeat_recruit(), request_control_change(), send_chat_message(), show_enemy_moves(), show_statistics(), speak(), status_table(), toggle_shroud_updates(), and update_shroud_now().
t_string events::menu_handler::can_recruit | ( | const std::string & | name, |
int | side_num, | ||
map_location & | target_hex, | ||
map_location & | recruited_from | ||
) |
Definition at line 304 of file menu_events.cpp.
References _(), board(), utils::contains(), unit_type::cost(), unit_type_data::find(), actions::find_recruit_location(), actions::get_recruits(), game_board::get_team(), play_controller::get_whiteboard(), team::gold(), team::last_recruit(), wfl::msg(), pc_, unit_type::type_name(), unit_types, and VGETTEXT.
Referenced by do_recruit(), and recruit().
void events::menu_handler::change_side | ( | mouse_handler & | mousehandler | ) |
Definition at line 775 of file menu_events.cpp.
References board(), unit_map::end(), unit_map::find(), events::mouse_handler::get_last_hex(), play_controller::get_map(), play_controller::get_teams(), play_controller::get_units(), actions::get_village(), i, gamemap::is_village(), pc_, and display_context::village_owner().
Referenced by playsingle_controller::hotkey_handler::change_side().
void events::menu_handler::clear_labels | ( | ) |
Definition at line 838 of file menu_events.cpp.
References _(), board(), map_labels::clear(), replay::clear_labels(), game_display::current_team_name(), gui_, display_context::is_observer(), display::labels(), gui2::OK, resources::recorder, gui2::show_message(), display::team_valid(), and gui2::dialogs::message::yes_no_buttons.
Referenced by playsingle_controller::hotkey_handler::clear_labels().
|
overridevirtual |
Implements events::chat_handler.
Definition at line 2157 of file menu_events.cpp.
References display_chat_manager::clear_chat_messages(), game_display::get_chat_manager(), and gui_.
Referenced by playsingle_controller::hotkey_handler::clear_messages().
void events::menu_handler::continue_move | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 861 of file menu_events.cpp.
References current_unit(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), play_controller::get_units(), i, move_unit_to_loc(), and pc_.
Referenced by playsingle_controller::hotkey_handler::continue_move(), and move_unit_to_loc().
void events::menu_handler::create_unit | ( | mouse_handler & | mousehandler | ) |
Creates a unit (in debug mode via hotkey or context menu).
Definition at line 761 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), play_controller::get_map(), play_controller::get_units(), gui_, and pc_.
Referenced by playsingle_controller::hotkey_handler::create_unit().
unit_map::iterator events::menu_handler::current_unit | ( | ) |
Definition at line 675 of file menu_events.cpp.
References board(), gui2::dialogs::unit_create::choice(), unit_map::end(), ERR_NG, unit_type_data::find(), game_board::find_visible_unit(), gui2::dialogs::unit_create::gender(), gender_string(), unit_type::genders(), events::mouse_handler::get_last_hex(), play_controller::get_mouse_handler_base(), play_controller::get_replay_controller(), events::mouse_handler::get_selected_hex(), play_controller::get_teams(), play_controller::get_units(), gui_, unit_type::id(), play_controller::is_replay(), gui2::dialogs::unit_create::no_choice(), unit_race::NUM_GENDERS, pc_, synced_context::run_and_throw(), replay_controller::see_all(), gui2::dialogs::modal_dialog::show(), display::show_everything(), unit_types, gui2::dialogs::unit_create::variation(), display::viewing_team(), map_location::wml_x(), and map_location::wml_y().
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), continue_move(), rename_unit(), unit_description(), and playsingle_controller::hotkey_handler::whiteboard_suppose_dead().
|
inline |
Definition at line 103 of file menu_events.hpp.
References gamedata, events::chat_handler::MESSAGE_PRIVATE, and mp::send_to_server().
void events::menu_handler::custom_command | ( | ) |
Definition at line 2143 of file menu_events.cpp.
References preferences::custom_command(), do_command(), and utils::split().
Referenced by playsingle_controller::hotkey_handler::custom_command().
void events::menu_handler::do_ai_formula | ( | const std::string & | str, |
int | side_num, | ||
mouse_handler & | mousehandler | ||
) |
Definition at line 2115 of file menu_events.cpp.
References add_chat_message(), ai::manager::get_singleton(), and utils::get_unknown_exception_type().
Referenced by play_controller::enter_textbox().
void events::menu_handler::do_command | ( | const std::string & | str | ) |
Definition at line 1442 of file menu_events.cpp.
References events::map_command_handler< Worker >::dispatch().
Referenced by custom_command(), and play_controller::enter_textbox().
bool events::menu_handler::do_recruit | ( | const std::string & | name, |
int | side_num, | ||
map_location & | target_hex | ||
) |
Definition at line 349 of file menu_events.cpp.
References team::action_bonus_count(), board(), can_recruit(), replay_helper::get_recruit(), game_board::get_team(), play_controller::get_whiteboard(), map_location::null_location(), pc_, synced_context::run_and_throw(), team::set_action_bonus_count(), and gui2::show_transient_message().
Referenced by wb::recruit::execute(), recruit(), and repeat_recruit().
void events::menu_handler::do_search | ( | const std::string & | new_search | ) |
Definition at line 1361 of file menu_events.cpp.
References gui2::dialogs::message::auto_close, utils::chars_equal_insensitive(), unit_map::end(), unit_map::find(), display::fogged(), map_labels::get_label(), play_controller::get_map(), play_controller::get_teams(), play_controller::get_units(), gui_, gamemap_base::h(), game_display::highlight_hex(), label, display::labels(), last_search_, last_search_hit_, wfl::msg(), display::ONSCREEN, pc_, display::scroll_to_tile(), gui2::show_message(), display::shrouded(), utils::split(), editor::start(), t_string::str(), terrain_label::text(), map_location::valid(), VGETTEXT, display::viewing_team(), gamemap_base::w(), map_location::x, and map_location::y.
Referenced by play_controller::enter_textbox().
void events::menu_handler::do_speak | ( | ) |
Definition at line 1053 of file menu_events.cpp.
References gui::floating_textbox::box(), gui::floating_textbox::check(), events::chat_handler::do_speak(), and textbox_info_.
Referenced by play_controller::enter_textbox().
bool events::menu_handler::end_turn | ( | int | side_num | ) |
Definition at line 570 of file menu_events.cpp.
References _(), board(), gui2::CANCEL, game_data::cannot_end_turn_reason(), preferences::confirm_no_moves(), t_string::empty(), gamedata(), play_controller::get_teams(), play_controller::get_undo_stack(), play_controller::get_units(), play_controller::get_whiteboard(), preferences::green_confirm(), pc_, actions::undo_list::player_acted(), gui2::show_message(), gui2::show_transient_message(), preferences::yellow_confirm(), and gui2::dialogs::message::yes_no_buttons.
Referenced by playsingle_controller::end_turn().
void events::menu_handler::end_unit_turn | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1021 of file menu_events.cpp.
References events::mouse_handler::cycle_units(), events::mouse_handler::deselect_hex(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), play_controller::get_units(), gui_, display::invalidate(), pc_, and events::mouse_handler::set_current_paths().
Referenced by playsingle_controller::hotkey_handler::end_unit_turn().
void events::menu_handler::execute_gotos | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 902 of file menu_events.cpp.
References board(), unit_map::count(), unit::get_goto(), unit::get_location(), play_controller::get_map(), events::mouse_handler::get_route(), play_controller::get_undo_stack(), play_controller::get_units(), gui_, display::invalidate_game_status(), LOG_NG, pathfind::marked_route::marks, actions::move_unit_and_record(), unit::movement_left(), gamemap_base::on_board(), pc_, unit::set_goto(), game_display::set_route(), unit::side(), pathfind::marked_route::steps, and w.
Referenced by playsingle_controller::execute_gotos().
game_data & events::menu_handler::gamedata | ( | ) |
Definition at line 114 of file menu_events.cpp.
References game_state::gamedata_, and gamestate().
Referenced by end_turn().
game_state & events::menu_handler::gamestate | ( | ) | const |
Definition at line 109 of file menu_events.cpp.
References play_controller::gamestate(), and pc_.
Referenced by board(), gamedata(), and objectives().
std::vector< std::string > events::menu_handler::get_commands_list | ( | ) |
Definition at line 1448 of file menu_events.cpp.
References events::map_command_handler< Worker >::dispatch(), and events::map_command_handler< Worker >::get_commands_list().
Referenced by play_controller::tab().
gui::floating_textbox & events::menu_handler::get_textbox | ( | ) |
Definition at line 124 of file menu_events.cpp.
References textbox_info_.
Referenced by play_controller::enter_textbox(), play_controller::have_keyboard_focus(), play_controller::process_focus_keydown_event(), play_controller::tab(), and play_controller::textbox_move_vertically().
void events::menu_handler::goto_leader | ( | int | side_num | ) |
Definition at line 624 of file menu_events.cpp.
References unit_map::end(), unit_map::find_leader(), display::get_disp_context(), display_context::get_team(), play_controller::get_units(), gui_, i, pc_, display::scroll_to_tile(), display::viewing_side(), and display::WARP.
Referenced by play_controller::hotkey_handler::goto_leader().
|
private |
Definition at line 227 of file menu_events.cpp.
References board(), play_controller::get_teams(), gui_, n, game_display::observers(), pc_, and display::viewing_team().
Referenced by send_chat_message(), and speak().
void events::menu_handler::kill_unit | ( | mouse_handler & | mousehandler | ) |
Definition at line 806 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), synced_context::run_and_throw(), map_location::wml_x(), and map_location::wml_y().
Referenced by playsingle_controller::hotkey_handler::kill_unit().
void events::menu_handler::label_settings | ( | ) |
Definition at line 854 of file menu_events.cpp.
References board(), gui_, display::labels(), and map_labels::recalculate_labels().
Referenced by playsingle_controller::hotkey_handler::label_settings().
void events::menu_handler::label_terrain | ( | mouse_handler & | mousehandler, |
bool | team_only | ||
) |
Definition at line 812 of file menu_events.cpp.
References replay::add_label(), map_labels::get_label(), events::mouse_handler::get_last_hex(), play_controller::get_map(), team::get_side_color(), gui_, label, font::LABEL_COLOR, display::labels(), gamemap_base::on_board(), pc_, resources::recorder, map_labels::set_label(), map_labels::team_name(), terrain_label::text(), display::viewing_side(), and display::viewing_team().
Referenced by playsingle_controller::hotkey_handler::label_terrain().
void events::menu_handler::move_unit_to_loc | ( | const unit_map::iterator & | ui, |
const map_location & | target, | ||
bool | continue_move, | ||
int | side_num, | ||
mouse_handler & | mousehandler | ||
) |
Definition at line 873 of file menu_events.cpp.
References board(), continue_move(), events::mouse_handler::deselect_hex(), unit_map::end(), events::mouse_handler::get_route(), play_controller::get_undo_stack(), play_controller::get_units(), gui_, display::invalidate_game_status(), LOG_NG, actions::move_unit_and_record(), pc_, game_display::set_route(), and game_display::unhighlight_reach().
Referenced by continue_move().
void events::menu_handler::objectives | ( | ) |
Definition at line 129 of file menu_events.cpp.
References gamestate(), pc_, play_controller::refresh_objectives(), and play_controller::show_objectives().
Referenced by play_controller::hotkey_handler::objectives().
void events::menu_handler::preferences | ( | ) |
Definition at line 185 of file menu_events.cpp.
References gui_, and display::queue_rerender().
Referenced by play_controller::hotkey_handler::preferences().
void events::menu_handler::recall | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 372 of file menu_events.cpp.
References _(), board(), DBG_WB, recall_list_manager::empty(), lg::err(), ERR_NG, actions::find_recall_location(), play_controller::get_disallow_recall(), replay_helper::get_recall(), actions::get_recalls(), gui2::dialogs::unit_recall::get_selected_index(), game_board::get_team(), play_controller::get_whiteboard(), team::gold(), unit::id(), synced_context::ignore_error_function(), LOG_NG, wfl::msg(), unit::name(), map_location::null_location(), pc_, game_config::recall_cost, team::recall_cost(), team::recall_list(), synced_context::run_and_throw(), gui2::dialogs::modal_dialog::show(), gui2::show_transient_message(), and VNGETTEXT.
Referenced by playsingle_controller::hotkey_handler::recall().
void events::menu_handler::recruit | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 243 of file menu_events.cpp.
References _(), board(), can_recruit(), do_recruit(), ERR_NG, unit_type_data::find(), utils::format_conjunct_list(), actions::get_recruits(), gui2::dialogs::unit_recruit::get_selected_unit_type(), unit_type::id(), gui2::dialogs::modal_dialog::show(), gui2::show_transient_message(), unit_types, and VNGETTEXT.
Referenced by playsingle_controller::hotkey_handler::recruit().
void events::menu_handler::rename_unit | ( | ) |
Definition at line 653 of file menu_events.cpp.
References _(), replay::add_rename(), current_unit(), unit_map::end(), play_controller::get_units(), gui_, game_display::invalidate_unit(), label, pc_, resources::recorder, and display::viewing_side().
Referenced by playsingle_controller::hotkey_handler::rename_unit().
void events::menu_handler::repeat_recruit | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 292 of file menu_events.cpp.
References board(), do_recruit(), game_board::get_team(), and team::last_recruit().
Referenced by playsingle_controller::hotkey_handler::repeat_recruit().
void events::menu_handler::request_control_change | ( | int | side_num, |
const std::string & | player | ||
) |
Definition at line 2130 of file menu_events.cpp.
References board(), preferences::login(), pc_, and play_controller::send_to_wesnothd().
Referenced by gui2::dialogs::mp_change_control::post_show().
void events::menu_handler::save_map | ( | ) |
Definition at line 158 of file menu_events.cpp.
References _(), e, filesystem::get_dir(), play_controller::get_map(), filesystem::get_user_data_dir(), wfl::msg(), gui2::dialogs::file_dialog::path(), pc_, gui2::dialogs::file_dialog::set_extension(), gui2::dialogs::file_dialog::set_path(), gui2::dialogs::file_dialog::set_save_mode(), gui2::dialogs::file_dialog::set_title(), gui2::dialogs::modal_dialog::show(), gui2::show_transient_error_message(), gui2::show_transient_message(), VGETTEXT, game::error::what(), gamemap::write(), and filesystem::write_file().
Referenced by play_controller::save_map().
void events::menu_handler::search | ( | ) |
Definition at line 1042 of file menu_events.cpp.
References _(), gui_, last_search_, last_search_hit_, wfl::msg(), gui::floating_textbox::show(), textbox_info_, gui::TEXTBOX_SEARCH, and map_location::valid().
Referenced by play_controller::hotkey_handler::search().
|
overrideprotectedvirtual |
Implements events::chat_handler.
Definition at line 1330 of file menu_events.cpp.
References add_chat_message(), board(), play_controller::get_teams(), gui_, has_friends(), display_context::is_observer(), preferences::login(), events::chat_handler::MESSAGE_PRIVATE, events::chat_handler::MESSAGE_PUBLIC, game_config::observer_team_name, pc_, game_config::sounds::private_message, resources::recorder, replay::speak(), display::viewing_side(), and display::viewing_team().
|
overridevirtual |
Implements events::chat_handler.
Definition at line 2162 of file menu_events.cpp.
References pc_, and play_controller::send_to_wesnothd().
|
inline |
Definition at line 55 of file menu_events.hpp.
References preferences::custom_command(), and help::show_help().
Referenced by play_controller::init().
void events::menu_handler::shout | ( | ) |
Definition at line 221 of file menu_events.cpp.
References preferences::set_message_private(), and speak().
Referenced by playmp_controller::hotkey_handler::shout().
void events::menu_handler::show_chat_log | ( | ) |
Definition at line 192 of file menu_events.cpp.
References c, and resources::recorder.
Referenced by play_controller::hotkey_handler::show_chat_log().
void events::menu_handler::show_enemy_moves | ( | bool | ignore_units, |
int | side_num | ||
) |
Definition at line 465 of file menu_events.cpp.
References board(), events::mouse_handler::disable_units_highlight(), display::fogged(), play_controller::get_mouse_handler_base(), game_board::get_team(), play_controller::get_teams(), play_controller::get_units(), gui_, events::mouse_handler::hex_hosts_unit(), game_display::highlight_another_reach(), events::mouse_handler::hovered_hex(), display::invalidate(), team::is_enemy(), game_config::path, pc_, game_display::unhighlight_reach(), and display::viewing_team().
Referenced by play_controller::hotkey_handler::show_enemy_moves().
void events::menu_handler::show_help | ( | ) |
Definition at line 201 of file menu_events.cpp.
References help::show_help().
Referenced by play_controller::hotkey_handler::show_help().
void events::menu_handler::show_statistics | ( | int | side_num | ) |
Definition at line 139 of file menu_events.cpp.
References board().
Referenced by play_controller::hotkey_handler::show_statistics().
void events::menu_handler::speak | ( | ) |
Definition at line 206 of file menu_events.cpp.
References _(), board(), gui_, has_friends(), preferences::message_private(), gui::floating_textbox::show(), textbox_info_, and gui::TEXTBOX_MESSAGE.
Referenced by shout(), play_controller::hotkey_handler::speak(), and whisper().
void events::menu_handler::status_table | ( | ) |
Definition at line 149 of file menu_events.cpp.
References board(), gui2::dialogs::game_stats::execute(), gui_, game_display::scroll_to_leader(), and display::viewing_team().
Referenced by play_controller::hotkey_handler::status_table().
void events::menu_handler::terrain_description | ( | mouse_handler & | mousehandler | ) |
Definition at line 641 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), play_controller::get_map(), gamemap::get_terrain_info(), gui_, gamemap_base::on_board(), pc_, help::show_terrain_description(), and display::shrouded().
Referenced by play_controller::hotkey_handler::terrain_description().
void events::menu_handler::toggle_ellipses | ( | ) |
Definition at line 994 of file menu_events.cpp.
References preferences::ellipses(), gui_, display::invalidate_all(), and preferences::set_ellipses().
Referenced by play_controller::hotkey_handler::toggle_ellipses().
void events::menu_handler::toggle_grid | ( | ) |
Definition at line 1000 of file menu_events.cpp.
References preferences::grid(), gui_, display::invalidate_all(), and preferences::set_grid().
Referenced by play_controller::hotkey_handler::toggle_grid().
void events::menu_handler::toggle_shroud_updates | ( | int | side_num | ) |
Definition at line 504 of file menu_events.cpp.
References team::auto_shroud_updates(), board(), replay_helper::get_auto_shroud(), game_board::get_team(), synced_context::run_and_throw(), and update_shroud_now().
Referenced by playsingle_controller::hotkey_handler::toggle_shroud_updates().
void events::menu_handler::unit_description | ( | ) |
Definition at line 633 of file menu_events.cpp.
References current_unit(), unit_map::end(), play_controller::get_units(), pc_, and help::show_unit_description().
Referenced by play_controller::hotkey_handler::unit_description().
void events::menu_handler::unit_hold_position | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1006 of file menu_events.cpp.
References events::mouse_handler::cycle_units(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), play_controller::get_units(), gui_, display::invalidate(), pc_, and events::mouse_handler::set_current_paths().
Referenced by playsingle_controller::hotkey_handler::unit_hold_position().
void events::menu_handler::unit_list | ( | ) |
Definition at line 144 of file menu_events.cpp.
References gui_, and gui2::dialogs::show_unit_list().
Referenced by play_controller::hotkey_handler::unit_list().
void events::menu_handler::update_shroud_now | ( | int | side_num | ) |
Definition at line 517 of file menu_events.cpp.
References board(), replay_helper::get_update_shroud(), unit::has_moved(), synced_context::run_and_throw(), unit::side(), display_context::unit_can_move(), and unit::user_end_turn().
Referenced by toggle_shroud_updates(), and playsingle_controller::hotkey_handler::update_shroud_now().
void events::menu_handler::user_command | ( | ) |
Definition at line 2125 of file menu_events.cpp.
References gui_, translation::sgettext(), gui::floating_textbox::show(), gui::TEXTBOX_COMMAND, and textbox_info_.
Referenced by playsingle_controller::hotkey_handler::user_command().
void events::menu_handler::whisper | ( | ) |
Definition at line 215 of file menu_events.cpp.
References preferences::set_message_private(), and speak().
Referenced by playmp_controller::hotkey_handler::whisper().
|
friend |
Definition at line 139 of file menu_events.hpp.
|
private |
Definition at line 148 of file menu_events.hpp.
|
private |
Definition at line 145 of file menu_events.hpp.
Referenced by add_chat_message(), ai_formula(), clear_labels(), clear_messages(), create_unit(), current_unit(), do_search(), end_unit_turn(), execute_gotos(), goto_leader(), has_friends(), label_settings(), label_terrain(), move_unit_to_loc(), preferences(), rename_unit(), search(), send_chat_message(), show_enemy_moves(), speak(), status_table(), terrain_description(), toggle_ellipses(), toggle_grid(), unit_hold_position(), unit_list(), and user_command().
|
private |
Definition at line 151 of file menu_events.hpp.
Referenced by do_search(), and search().
|
private |
Definition at line 152 of file menu_events.hpp.
Referenced by do_search(), and search().
|
private |
Definition at line 146 of file menu_events.hpp.
Referenced by ai_formula(), can_recruit(), change_side(), continue_move(), create_unit(), current_unit(), do_recruit(), do_search(), end_turn(), end_unit_turn(), execute_gotos(), gamestate(), goto_leader(), has_friends(), label_terrain(), move_unit_to_loc(), objectives(), recall(), rename_unit(), request_control_change(), save_map(), send_chat_message(), send_to_server(), show_enemy_moves(), terrain_description(), unit_description(), and unit_hold_position().
|
private |
Definition at line 150 of file menu_events.hpp.
Referenced by ai_formula(), do_speak(), get_textbox(), search(), speak(), and user_command().