#include <mouse_events.hpp>
Public Member Functions | |
mouse_handler (game_display *gui, play_controller &pc) | |
~mouse_handler () | |
void | set_side (int side_number) |
void | mouse_press (const SDL_MouseButtonEvent &event, const bool browse) |
void | cycle_units (const bool browse, const bool reverse=false) |
void | cycle_back_units (const bool browse) |
int | get_path_turns () const |
map_location | current_unit_attacks_from (const map_location &loc) const |
const pathfind::paths & | current_paths () const |
const map_location & | get_last_hex () const |
map_location | get_selected_hex () const |
void | set_path_turns (const int path_turns) |
void | set_current_paths (const pathfind::paths &new_paths) |
void | deselect_hex () |
void | invalidate_reachmap () |
void | set_gui (game_display *gui) |
unit_map::iterator | selected_unit () |
pathfind::marked_route | get_route (const unit *un, map_location go_to, team &team) const |
const pathfind::marked_route & | get_current_route () const |
std::set< map_location > | get_adj_enemies (const map_location &loc, int side) const |
int | show_attack_dialog (const map_location &attacker_loc, const map_location &defender_loc) |
void | attack_enemy (const map_location &attacker_loc, const map_location &defender_loc, int choice) |
size_t | move_unit_along_route (const std::vector< map_location > &steps, bool &interrupted) |
Moves a unit across the board for a player. More... | |
void | select_hex (const map_location &hex, const bool browse, const bool highlight=true, const bool fire_event=true) |
void | move_action (bool browse) |
Overridden in derived class. More... | |
void | select_or_action (bool browse) |
void | left_mouse_up (int x, int y, const bool) |
Called when the left mouse button is up. More... | |
void | mouse_wheel_up (int x, int y, const bool) |
Called when the mouse wheel is scrolled up. More... | |
void | mouse_wheel_down (int x, int y, const bool) |
Called when the mouse wheel is scrolled down. More... | |
void | mouse_wheel_left (int x, int y, const bool) |
Called when the mouse wheel is scrolled left. More... | |
void | mouse_wheel_right (int x, int y, const bool) |
Called when the mouse wheel is scrolled right. More... | |
Public Member Functions inherited from events::mouse_handler_base | |
mouse_handler_base () | |
virtual | ~mouse_handler_base () |
bool | is_dragging () const |
void | mouse_motion_event (const SDL_MouseMotionEvent &event, const bool browse) |
void | mouse_update (const bool browse, map_location loc) |
update the mouse with a fake mouse motion More... | |
bool | get_show_menu () const |
bool | mouse_motion_default (int x, int y, bool update) |
This handles minimap scrolling and click-drag. More... | |
bool | is_left_click (const SDL_MouseButtonEvent &event) const |
bool | is_middle_click (const SDL_MouseButtonEvent &event) const |
bool | is_right_click (const SDL_MouseButtonEvent &event) const |
virtual void | mouse_wheel (int xscroll, int yscroll, bool browse) |
Called when scrolling with the mouse wheel. More... | |
virtual bool | allow_mouse_wheel_scroll (int x, int y) |
Derived classes can override this to disable mousewheel scrolling under some circumstances, e.g. More... | |
virtual bool | left_click (int x, int y, const bool browse) |
Overridden in derived classes, called on a left click (mousedown). More... | |
virtual void | left_drag_end (int x, int y, const bool browse) |
Called whenever the left mouse drag has "ended". More... | |
virtual bool | right_click (int x, int y, const bool browse) |
Overridden in derived classes, called on a right click (mousedown). More... | |
virtual void | right_drag_end (int x, int y, const bool browse) |
Called whenever the right mouse drag has "ended". More... | |
virtual void | right_mouse_up (int x, int y, const bool browse) |
Called when the right mouse button is up. More... | |
void | set_scroll_start (int x, int y) |
Called when the middle click scrolling. More... | |
const map_location | get_scroll_start () |
bool | scroll_started () |
Static Public Member Functions | |
static mouse_handler * | get_singleton () |
Protected Member Functions | |
game_display & | gui () |
Due to the way this class is constructed we can assume that the display* gui_ member actually points to a game_display (derived class) More... | |
const game_display & | gui () const |
Const version. More... | |
int | drag_threshold () const |
void | mouse_motion (int x, int y, const bool browse, bool update=false, map_location loc=map_location::null_location()) |
Use update to force an update of the mouse state. More... | |
bool | right_click_show_menu (int x, int y, const bool browse) |
Called in the default right_click when the context menu is about to be shown, can be used for preprocessing and preventing the menu from being displayed without rewriting the right click function. More... | |
bool | move_unit_along_current_route () |
Moves a unit along the currently cached route. More... | |
void | save_whiteboard_attack (const map_location &attacker_loc, const map_location &defender_loc, int weapon_choice) |
int | fill_weapon_choices (std::vector< battle_context > &bc_vector, unit_map::iterator attacker, unit_map::iterator defender) |
void | attack_enemy_ (const map_location &attacker_loc, const map_location &defender_loc, int choice) |
void | show_attack_options (const unit_map::const_iterator &u) |
Causes attackable hexes to be highlighted. More... | |
unit_map::const_iterator | find_unit (const map_location &hex) const |
unit_map::iterator | find_unit (const map_location &hex) |
bool | unit_in_cycle (unit_map::const_iterator it) |
Protected Member Functions inherited from events::mouse_handler_base | |
void | cancel_dragging () |
void | clear_dragging (const SDL_MouseButtonEvent &event, bool browse) |
void | init_dragging (bool &dragging_flag) |
Private Member Functions | |
team & | viewing_team () |
const team & | viewing_team () const |
team & | current_team () |
Static Private Attributes | |
static mouse_handler * | singleton_ = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from events::mouse_handler_base | |
bool | simple_warp_ |
MMB click (on game map) state flag. More... | |
bool | minimap_scrolling_ |
minimap scrolling (scroll-drag) state flag More... | |
bool | dragging_left_ |
LMB drag init flag. More... | |
bool | dragging_started_ |
Actual drag flag. More... | |
bool | dragging_right_ |
RMB drag init flag. More... | |
int | drag_from_x_ |
Drag start position x. More... | |
int | drag_from_y_ |
Drag start position y. More... | |
map_location | drag_from_hex_ |
Drag start map location. More... | |
map_location | last_hex_ |
last highlighted hex More... | |
bool | show_menu_ |
Show context menu flag. More... | |
int | scroll_start_x_ |
Relative to middle click scrolling. More... | |
int | scroll_start_y_ |
bool | scroll_started_ |
Definition at line 37 of file mouse_events.hpp.
events::mouse_handler::mouse_handler | ( | game_display * | gui, |
play_controller & | pc | ||
) |
Definition at line 75 of file mouse_events.cpp.
References singleton_.
events::mouse_handler::~mouse_handler | ( | ) |
Definition at line 95 of file mouse_events.cpp.
References singleton_.
void events::mouse_handler::attack_enemy | ( | const map_location & | attacker_loc, |
const map_location & | defender_loc, | ||
int | choice | ||
) |
Definition at line 998 of file mouse_events.cpp.
References attack_enemy_(), and lg::wml_error().
Referenced by wb::attack::execute(), and move_action().
|
protected |
Definition at line 1007 of file mouse_events.cpp.
References battle_context_unit_stats::attack_num, game_display::clear_attack_indicator(), current_paths_, current_team(), game_display::display_unit_hex(), display::draw(), fill_weapon_choices(), find_unit(), replay_helper::get_attack(), tod_manager::get_time_of_day(), play_controller::get_tod_manager_const(), gui(), game_display::highlight_hex(), battle_context_unit_stats::level, pc_, synced_context::run_and_throw(), game_display::select_hex(), team::set_action_bonus_count(), side_num_, tod_manager::turn(), and game_display::unhighlight_reach().
Referenced by attack_enemy().
|
inline |
Definition at line 54 of file mouse_events.hpp.
References current_paths_.
Referenced by play_controller::process_keyup_event().
|
private |
Definition at line 1184 of file mouse_events.cpp.
References game_state::board_, play_controller::gamestate(), pc_, side_num_, and game_board::teams_.
Referenced by attack_enemy_(), mouse_motion(), show_attack_options(), and unit_in_cycle().
map_location events::mouse_handler::current_unit_attacks_from | ( | const map_location & | loc | ) | const |
loc | the location occupied by the enemy |
Definition at line 361 of file mouse_events.cpp.
References game_state::board_, pathfind::paths::dest_vect::contains(), current_paths_, play_controller::current_side(), pathfind::paths::destinations, find_unit(), play_controller::gamestate(), get_adjacent_tiles(), map_location::get_relative_dir(), play_controller::get_whiteboard(), gui_, team::is_enemy(), game_board::map(), map_location::NDIRECTIONS, gamemap::on_board(), pc_, previous_free_hex_, previous_hex_, selected_hex_, map_location::valid(), unit_map::iterator_base< iter_types >::valid(), display::viewing_side(), and viewing_team().
Referenced by mouse_motion(), and move_action().
|
inline |
Definition at line 45 of file mouse_events.hpp.
References cycle_units().
Referenced by play_controller::hotkey_handler::cycle_back_units().
void events::mouse_handler::cycle_units | ( | const bool | browse, |
const bool | reverse = false |
||
) |
Definition at line 1135 of file mouse_events.cpp.
References unit_map::begin(), game_state::board_, unit_map::end(), find_unit(), play_controller::gamestate(), gui(), next_unit_, pc_, display::scroll_to_tile(), select_hex(), unit_in_cycle(), game_board::units(), and display::WARP.
Referenced by cycle_back_units(), play_controller::hotkey_handler::cycle_units(), events::menu_handler::end_unit_turn(), and events::menu_handler::unit_hold_position().
void events::mouse_handler::deselect_hex | ( | ) |
Definition at line 811 of file mouse_events.cpp.
References select_hex().
Referenced by play_controller::hotkey_handler::deselect_hex(), play_controller::finish_side_turn(), play_controller::redo(), and play_controller::undo().
|
protectedvirtual |
Reimplemented from events::mouse_handler_base.
Definition at line 105 of file mouse_events.cpp.
|
protected |
Definition at line 945 of file mouse_events.cpp.
References game_state::board_, play_controller::gamestate(), i, pc_, and game_board::units_.
Referenced by attack_enemy_(), and show_attack_dialog().
|
protected |
Definition at line 356 of file mouse_events.cpp.
References game_state::board_, game_board::find_visible_unit(), play_controller::gamestate(), pc_, and viewing_team().
Referenced by attack_enemy_(), current_unit_attacks_from(), cycle_units(), get_adj_enemies(), mouse_motion(), move_action(), select_hex(), select_or_action(), and selected_unit().
|
protected |
Definition at line 347 of file mouse_events.cpp.
References game_state::board_, unit_map::end(), game_board::find_visible_unit(), play_controller::gamestate(), pc_, game_board::units_, unit_map::iterator_base< iter_types >::valid(), and viewing_team().
std::set< map_location > events::mouse_handler::get_adj_enemies | ( | const map_location & | loc, |
int | side | ||
) | const |
Definition at line 1062 of file mouse_events.cpp.
References game_state::board_, find_unit(), play_controller::gamestate(), get_adjacent_tiles(), i, team::is_enemy(), pc_, and game_board::teams_.
|
inline |
Definition at line 69 of file mouse_events.hpp.
References current_route_.
Referenced by wb::manager::create_temp_move().
|
inline |
Definition at line 56 of file mouse_events.hpp.
References events::mouse_handler_base::last_hex_.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), events::menu_handler::change_side(), events::menu_handler::create_unit(), events::menu_handler::current_unit(), events::console_handler::do_create(), events::console_handler::do_layers(), play_controller::hotkey_handler::execute_command(), play_controller::hotkey_handler::expand_wml_commands(), play_controller::hotkey_handler::in_context_menu(), events::menu_handler::kill_unit(), events::menu_handler::label_terrain(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), playsingle_controller::hotkey_handler::repeat_recruit(), and events::menu_handler::terrain_description().
|
inline |
Definition at line 47 of file mouse_events.hpp.
References path_turns_.
Referenced by play_controller::process_keyup_event().
pathfind::marked_route events::mouse_handler::get_route | ( | const unit * | un, |
map_location | go_to, | ||
team & | team | ||
) | const |
Definition at line 452 of file mouse_events.cpp.
References pathfind::a_star_search(), game_state::board_, play_controller::gamestate(), unit::get_location(), pathfind::get_teleport_locations(), gamemap::h(), game_board::map(), pathfind::mark_route(), pc_, game_board::teams(), viewing_team(), and gamemap::w().
Referenced by events::menu_handler::execute_gotos(), mouse_motion(), and events::menu_handler::move_unit_to_loc().
|
inline |
Definition at line 57 of file mouse_events.hpp.
References selected_hex_.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), events::menu_handler::continue_move(), events::menu_handler::current_unit(), events::menu_handler::end_unit_turn(), wb::manager::on_mouseover_change(), play_controller::process_keyup_event(), and events::menu_handler::unit_hold_position().
|
inlinestatic |
Definition at line 41 of file mouse_events.hpp.
References singleton_.
Referenced by unit_display::unit_mover::finish(), and unit_display::unit_die().
|
inlineprotectedvirtual |
Due to the way this class is constructed we can assume that the display* gui_ member actually points to a game_display (derived class)
Implements events::mouse_handler_base.
Definition at line 102 of file mouse_events.hpp.
References gui_.
Referenced by attack_enemy_(), cycle_units(), mouse_motion(), move_action(), move_unit_along_current_route(), move_unit_along_route(), right_click_show_menu(), save_whiteboard_attack(), select_hex(), set_current_paths(), set_gui(), unit_in_cycle(), and viewing_team().
|
inlineprotectedvirtual |
Const version.
Implements events::mouse_handler_base.
Definition at line 104 of file mouse_events.hpp.
References gui_.
|
inline |
Definition at line 61 of file mouse_events.hpp.
References reachmap_invalid_.
Referenced by unit_display::unit_mover::finish(), and unit_display::unit_die().
Called when the left mouse button is up.
Reimplemented from events::mouse_handler_base.
Definition at line 479 of file mouse_events.cpp.
References display::find_slider(), play_controller::get_hotkey_command_executor(), gui_, pc_, hotkey::command_executor::set_button_state(), and display::set_zoom().
|
protectedvirtual |
Use update to force an update of the mouse state.
Implements events::mouse_handler_base.
Definition at line 110 of file mouse_events.cpp.
References cursor::ATTACK, cursor::ATTACK_DRAG, game_state::board_, game_display::clear_attack_indicator(), pathfind::paths::dest_vect::contains(), current_paths_, current_route_, current_team(), current_unit_attacks_from(), pathfind::paths::destinations, events::mouse_handler_base::dragging_started_, find_unit(), display::fogged(), play_controller::gamestate(), cursor::get(), play_controller::get_map_const(), get_route(), unit_map::iterator_base< iter_types >::get_shared_ptr(), play_controller::get_whiteboard(), gui(), display::hex_clicked_on(), game_display::highlight_hex(), game_display::highlight_reach(), events::mouse_handler_base::last_hex_, game_state::lua_kernel_, game_board::map(), events::mouse_handler_base::mouse_motion_default(), cursor::MOVE, cursor::MOVE_DRAG, cursor::NORMAL, map_location::null_location(), gamemap::on_board(), over_route_, path_turns_, pc_, previous_free_hex_, previous_hex_, reachmap_invalid_, select_hex(), selected_hex_, selected_unit(), cursor::set(), game_display::set_attack_indicator(), game_display::set_route(), show_partial_move_, side_num_, pathfind::marked_route::steps, game_display::unhighlight_reach(), unselected_paths_, map_location::valid(), unit_map::iterator_base< iter_types >::valid(), viewing_team(), and cursor::WAIT.
|
virtual |
Reimplemented from events::mouse_handler_base.
Definition at line 468 of file mouse_events.cpp.
References events::mouse_handler_base::mouse_press().
Referenced by play_controller::hotkey_handler::left_mouse_click(), and play_controller::hotkey_handler::right_mouse_click().
Called when the mouse wheel is scrolled down.
Reimplemented from events::mouse_handler_base.
Definition at line 495 of file mouse_events.cpp.
References display::find_slider(), play_controller::get_hotkey_command_executor(), gui_, pc_, hotkey::command_executor::set_button_state(), and display::set_zoom().
Called when the mouse wheel is scrolled left.
Reimplemented from events::mouse_handler_base.
Definition at line 503 of file mouse_events.cpp.
References display::find_slider(), play_controller::get_hotkey_command_executor(), gui_, pc_, hotkey::command_executor::set_button_state(), and display::set_zoom().
Called when the mouse wheel is scrolled right.
Reimplemented from events::mouse_handler_base.
Definition at line 511 of file mouse_events.cpp.
References display::find_slider(), play_controller::get_hotkey_command_executor(), gui_, pc_, hotkey::command_executor::set_button_state(), and display::set_zoom().
Called when the mouse wheel is scrolled up.
Reimplemented from events::mouse_handler_base.
Definition at line 487 of file mouse_events.cpp.
References display::find_slider(), play_controller::get_hotkey_command_executor(), gui_, pc_, hotkey::command_executor::set_button_state(), and display::set_zoom().
|
virtual |
Overridden in derived class.
Called on drag+drop movements.
Reimplemented from events::mouse_handler_base.
Definition at line 542 of file mouse_events.cpp.
References attack_enemy(), game_state::board_, game_display::clear_attack_indicator(), events::commands_disabled, current_paths_, current_route_, current_unit_attacks_from(), pathfind::paths::destinations, pathfind::paths::dest_vect::find(), find_unit(), play_controller::gamestate(), play_controller::get_whiteboard(), gui(), itor, events::mouse_handler_base::last_hex_, game_state::lua_kernel_, move_unit_along_current_route(), pc_, save_whiteboard_attack(), game_display::select_hex(), select_hex(), selected_hex_, game_display::set_route(), show_attack_dialog(), show_partial_move_, side_num_, pathfind::marked_route::steps, game_display::unhighlight_reach(), game_board::units_, map_location::valid(), and unit_map::iterator_base< iter_types >::valid().
Referenced by play_controller::hotkey_handler::move_action(), and select_or_action().
|
protected |
Moves a unit along the currently cached route.
Definition at line 822 of file mouse_events.cpp.
References current_paths_, current_route_, gui(), move_unit_along_route(), next_unit_, game_display::select_hex(), selected_hex_, game_display::set_route(), pathfind::marked_route::steps, and game_display::unhighlight_reach().
Referenced by move_action().
size_t events::mouse_handler::move_unit_along_route | ( | const std::vector< map_location > & | steps, |
bool & | interrupted | ||
) |
Moves a unit across the board for a player.
This is specifically for movement at the time it is initiated by a player, whether via a mouse click or executing whiteboard actions. Continued moves (including goto execution) can bypass this and call actions::move_unit() directly. This function call may include time for an animation, so make sure the provided route will remain unchanged (the caller should probably make a local copy).
[in] | steps | The route to be traveled. The unit to be moved is at the beginning of this route. |
[out] | interrupted | This is set to true if information was uncovered that warrants interrupting a chain of actions (and set to false otherwise). |
Definition at line 868 of file mouse_events.cpp.
References _(), game_state::board_, unit_map::find(), play_controller::gamestate(), play_controller::get_map_const(), play_controller::get_undo_stack(), play_controller::get_whiteboard(), gui(), gui_, display::invalidate_game_status(), gamemap::is_keep(), LOG_NG, actions::move_unit_and_record(), cursor::NORMAL, pc_, select_hex(), cursor::set(), show_partial_move_, gui2::show_transient_message(), game_board::units(), display::video(), and display::viewing_side().
Referenced by wb::move::execute(), and move_unit_along_current_route().
|
protectedvirtual |
Called in the default right_click when the context menu is about to be shown, can be used for preprocessing and preventing the menu from being displayed without rewriting the right click function.
Reimplemented from events::mouse_handler_base.
Definition at line 473 of file mouse_events.cpp.
References gui(), sdl::point_in_rect(), selected_hex_, and map_location::valid().
|
protected |
Definition at line 914 of file mouse_events.cpp.
References game_display::clear_attack_indicator(), current_paths_, current_route_, display::draw(), play_controller::get_whiteboard(), gui(), pc_, game_display::select_hex(), selected_hex_, game_display::set_route(), show_partial_move_, pathfind::marked_route::steps, and game_display::unhighlight_reach().
Referenced by move_action().
void events::mouse_handler::select_hex | ( | const map_location & | hex, |
const bool | browse, | ||
const bool | highlight = true , |
||
const bool | fire_event = true |
||
) |
Definition at line 725 of file mouse_events.cpp.
References unit_map::begin(), game_state::board_, game_display::clear_attack_indicator(), events::commands_disabled, current_paths_, current_route_, pathfind::paths::destinations, unit_map::end(), pathfind::paths::dest_vect::find(), unit_map::find(), find_unit(), game_events::t_pump::fire(), display::fogged(), play_controller::gamestate(), play_controller::get_whiteboard(), gui(), gui_, game_display::highlight_another_reach(), game_display::highlight_reach(), pathfind::paths::dest_vect::insert(), events::mouse_handler_base::last_hex_, game_state::lua_kernel_, next_unit_, path_turns_, pc_, sound::play_UI_sound(), play_controller::pump(), game_display::select_hex(), selected_hex_, game_display::set_route(), show_attack_options(), show_partial_move_, pathfind::marked_route::steps, game_display::unhighlight_reach(), game_board::units_, unselected_paths_, map_location::valid(), unit_map::iterator_base< iter_types >::valid(), display::viewing_side(), and viewing_team().
Referenced by cycle_units(), deselect_hex(), game_lua_kernel::intf_deselect_hex(), game_lua_kernel::intf_select_unit(), mouse_motion(), move_action(), move_unit_along_route(), play_controller::process_keyup_event(), play_controller::hotkey_handler::select_hex(), and select_or_action().
void events::mouse_handler::select_or_action | ( | bool | browse | ) |
Definition at line 519 of file mouse_events.cpp.
References find_unit(), play_controller::get_map_const(), events::mouse_handler_base::last_hex_, move_action(), gamemap::on_board(), pc_, select_hex(), selected_hex_, and side_num_.
Referenced by play_controller::hotkey_handler::select_and_action().
unit_map::iterator events::mouse_handler::selected_unit | ( | ) |
Definition at line 337 of file mouse_events.cpp.
References find_unit(), events::mouse_handler_base::last_hex_, and selected_hex_.
Referenced by mouse_motion(), and play_controller::process_keyup_event().
void events::mouse_handler::set_current_paths | ( | const pathfind::paths & | new_paths | ) |
Definition at line 1168 of file mouse_events.cpp.
References current_paths_, current_route_, play_controller::get_whiteboard(), gui(), pc_, game_display::set_route(), pathfind::marked_route::steps, and game_display::unhighlight_reach().
Referenced by events::menu_handler::end_unit_turn(), play_controller::process_keyup_event(), and events::menu_handler::unit_hold_position().
|
inline |
Definition at line 63 of file mouse_events.hpp.
Referenced by play_controller::init().
Definition at line 58 of file mouse_events.hpp.
References path_turns_.
Referenced by play_controller::process_keyup_event().
Definition at line 100 of file mouse_events.cpp.
References side_num_.
Referenced by play_controller::init_side_begin().
int events::mouse_handler::show_attack_dialog | ( | const map_location & | attacker_loc, |
const map_location & | defender_loc | ||
) |
Definition at line 962 of file mouse_events.cpp.
References _(), game_state::board_, ERR_NG, fill_weapon_choices(), unit_map::find(), play_controller::gamestate(), gui2::tdialog::get_retval(), gui2::tunit_attack::get_selected_weapon(), gui_, gui2::twindow::OK, pc_, gui2::tdialog::show(), gui2::show_transient_message(), game_board::units_, and display::video().
Referenced by move_action().
|
protected |
Causes attackable hexes to be highlighted.
This checks the hexes that the provided unit can attack. If there is a valid target there, that location is inserted into current_paths_.destinations.
Definition at line 1084 of file mouse_events.cpp.
References game_state::board_, current_paths_, current_team(), pathfind::paths::destinations, unit_map::find(), play_controller::gamestate(), get_adjacent_tiles(), play_controller::get_map_const(), i, unit::incapacitated(), pathfind::paths::dest_vect::insert(), team::is_enemy(), game_board::map(), gamemap::on_board(), pc_, unit::side(), game_board::teams_, and game_board::units().
Referenced by select_hex().
|
protected |
Definition at line 1112 of file mouse_events.cpp.
References game_state::board_, current_team(), display::fogged(), play_controller::gamestate(), gui(), team::is_enemy(), pc_, side_num_, display_context::unit_can_move(), and viewing_team().
Referenced by cycle_units().
|
private |
Definition at line 1176 of file mouse_events.cpp.
References game_state::board_, play_controller::gamestate(), gui(), pc_, game_board::teams_, and display::viewing_team().
Referenced by current_unit_attacks_from(), find_unit(), get_route(), mouse_motion(), select_hex(), and unit_in_cycle().
|
private |
Definition at line 1180 of file mouse_events.cpp.
References game_state::board_, play_controller::gamestate(), gui(), pc_, game_board::teams(), and display::viewing_team().
|
private |
Definition at line 145 of file mouse_events.hpp.
Referenced by attack_enemy_(), current_paths(), current_unit_attacks_from(), mouse_motion(), move_action(), move_unit_along_current_route(), save_whiteboard_attack(), select_hex(), set_current_paths(), and show_attack_options().
|
private |
Definition at line 144 of file mouse_events.hpp.
Referenced by get_current_route(), mouse_motion(), move_action(), move_unit_along_current_route(), save_whiteboard_attack(), select_hex(), and set_current_paths().
|
private |
Definition at line 135 of file mouse_events.hpp.
Referenced by current_unit_attacks_from(), gui(), left_mouse_up(), mouse_wheel_down(), mouse_wheel_left(), mouse_wheel_right(), mouse_wheel_up(), move_unit_along_route(), select_hex(), set_gui(), and show_attack_dialog().
|
private |
Definition at line 143 of file mouse_events.hpp.
Referenced by cycle_units(), move_unit_along_current_route(), and select_hex().
|
private |
Definition at line 150 of file mouse_events.hpp.
Referenced by mouse_motion().
|
private |
Definition at line 147 of file mouse_events.hpp.
Referenced by get_path_turns(), mouse_motion(), select_hex(), and set_path_turns().
|
private |
Definition at line 136 of file mouse_events.hpp.
Referenced by attack_enemy_(), current_team(), current_unit_attacks_from(), cycle_units(), fill_weapon_choices(), find_unit(), get_adj_enemies(), get_route(), left_mouse_up(), mouse_motion(), mouse_wheel_down(), mouse_wheel_left(), mouse_wheel_right(), mouse_wheel_up(), move_action(), move_unit_along_route(), save_whiteboard_attack(), select_hex(), select_or_action(), set_current_paths(), show_attack_dialog(), show_attack_options(), unit_in_cycle(), and viewing_team().
|
private |
Definition at line 141 of file mouse_events.hpp.
Referenced by current_unit_attacks_from(), and mouse_motion().
|
private |
Definition at line 140 of file mouse_events.hpp.
Referenced by current_unit_attacks_from(), and mouse_motion().
|
private |
Definition at line 151 of file mouse_events.hpp.
Referenced by invalidate_reachmap(), and mouse_motion().
|
private |
Definition at line 142 of file mouse_events.hpp.
Referenced by current_unit_attacks_from(), get_selected_hex(), mouse_motion(), move_action(), move_unit_along_current_route(), right_click_show_menu(), save_whiteboard_attack(), select_hex(), select_or_action(), and selected_unit().
|
private |
Definition at line 152 of file mouse_events.hpp.
Referenced by mouse_motion(), move_action(), move_unit_along_route(), save_whiteboard_attack(), and select_hex().
|
private |
Definition at line 148 of file mouse_events.hpp.
Referenced by attack_enemy_(), current_team(), mouse_motion(), move_action(), select_or_action(), set_side(), and unit_in_cycle().
|
staticprivate |
Definition at line 154 of file mouse_events.hpp.
Referenced by get_singleton(), mouse_handler(), and ~mouse_handler().
|
private |
Definition at line 146 of file mouse_events.hpp.
Referenced by mouse_motion(), and select_hex().