The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
move.cpp File Reference

Movement. More...

#include "move.hpp"
#include "undo.hpp"
#include "vision.hpp"
#include "config_assign.hpp"
#include "game_display.hpp"
#include "game_events/manager.hpp"
#include "game_events/pump.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "hotkey/hotkey_item.hpp"
#include "hotkey/hotkey_command.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "mouse_handler_base.hpp"
#include "pathfind/pathfind.hpp"
#include "replay.hpp"
#include "replay_helper.hpp"
#include "synced_context.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "units/udisplay.hpp"
#include "formula/string_utils.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "units/animation_component.hpp"
#include "whiteboard/manager.hpp"
#include <deque>
#include <map>
#include <set>
Include dependency graph for move.cpp:

Go to the source code of this file.

Namespaces

 actions
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 

Functions

bool actions::get_village (const map_location &loc, int side, bool *time_bonus=nullptr, bool fire_event=true)
 Makes it so the village at the given location is owned by the given side. More...
 
static size_t actions::move_unit_internal (undo_list *undo_stack, bool show_move, bool *interrupted, unit_mover &mover)
 
size_t actions::move_unit_and_record (const std::vector< map_location > &steps, undo_list *undo_stack, bool continued_move, bool show_move, bool *interrupted, move_unit_spectator *move_spectator)
 Moves a unit across the board. More...
 
size_t actions::move_unit_from_replay (const std::vector< map_location > &steps, undo_list *undo_stack, bool continued_move, bool skip_ally_sighted, bool show_move=true)
 Moves a unit across the board. More...
 

Variables

static lg::log_domain log_engine ("engine")
 

Detailed Description

Movement.

Definition in file move.cpp.

Macro Definition Documentation

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 54 of file move.cpp.

Referenced by actions::move_unit_and_record().

Variable Documentation

route_iterator ambush_limit_

Definition at line 294 of file move.cpp.

map_location ambush_stop_

Definition at line 316 of file move.cpp.

std::string ambush_string_

Definition at line 329 of file move.cpp.

bool ambushed_

Definition at line 318 of file move.cpp.

std::vector<map_location> ambushers_

Definition at line 330 of file move.cpp.

const route_iterator begin_

Definition at line 291 of file move.cpp.

Referenced by t_string_base::walker::update().

map_location blocked_loc_

Definition at line 317 of file move.cpp.

shroud_clearer clearer_

Definition at line 333 of file move.cpp.

int current_side_

Definition at line 308 of file move.cpp.

team* current_team_

Definition at line 309 of file move.cpp.

bool current_uses_fog_

Definition at line 310 of file move.cpp.

size_t do_move_track_

Definition at line 312 of file move.cpp.

size_t enemy_count_

Definition at line 327 of file move.cpp.

bool event_mutated_

Definition at line 320 of file move.cpp.

bool event_mutated_mid_move_

Definition at line 321 of file move.cpp.

route_iterator expected_end_

Definition at line 293 of file move.cpp.

bool fog_changed_

Definition at line 322 of file move.cpp.

size_t friend_count_

Definition at line 328 of file move.cpp.

const route_iterator full_end_

Definition at line 292 of file move.cpp.

const map_location goto_

Definition at line 305 of file move.cpp.

lg::log_domain log_engine("engine")
static

Definition at line 299 of file move.cpp.

route_iterator move_loc_

Definition at line 311 of file move.cpp.

std::deque<int> moves_left_

Definition at line 331 of file move.cpp.

route_iterator obstructed_

Definition at line 295 of file move.cpp.

const map_location::DIRECTION orig_dir_

Definition at line 304 of file move.cpp.

const int orig_moves_

Definition at line 303 of file move.cpp.

const int orig_side_

Definition at line 302 of file move.cpp.

const bool playing_team_is_viewing_

Definition at line 286 of file move.cpp.

route_iterator real_end_

Definition at line 296 of file move.cpp.

bool report_extra_hex_

Definition at line 326 of file move.cpp.

const std::vector<map_location>& route_

Definition at line 288 of file move.cpp.

bool show_ambush_alert_

Definition at line 319 of file move.cpp.

bool sighted_

Definition at line 323 of file move.cpp.

bool sighted_stop_

Definition at line 324 of file move.cpp.

const bool skip_ally_sighting_

Definition at line 285 of file move.cpp.

const bool skip_sighting_

Definition at line 284 of file move.cpp.

move_unit_spectator* const spectator_

Definition at line 283 of file move.cpp.

bool teleport_failed_

Definition at line 325 of file move.cpp.

map_location zoc_stop_

Definition at line 315 of file move.cpp.