The Battle for Wesnoth  1.19.7+dev
Classes | Namespaces | Functions
move.hpp File Reference

Various functions related to moving units. More...

#include "units/map.hpp"
#include "game_events/fwd.hpp"
#include "synced_commands.hpp"
#include <vector>
Include dependency graph for move.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  actions::move_unit_spectator
 

Namespaces

 actions
 

Functions

game_events::pump_result_t 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...
 
void actions::teleport_unit_and_record (const map_location &teleport_from, const map_location &teleport_to, move_unit_spectator *move_spectator=nullptr)
 Teleports a unit across the board and enters the synced context. More...
 
void actions::teleport_unit_from_replay (const std::vector< map_location > &steps, bool continued_move, bool skip_ally_sighted, bool show_move)
 Teleports a unit across the board. More...
 
void actions::move_unit_and_record (const std::vector< map_location > &steps, bool continued_move, move_unit_spectator &move_spectator)
 Moves a unit across the board. More...
 
std::size_t actions::move_unit_and_record (const std::vector< map_location > &steps, bool continued_move, bool *interrupted)
 Wrapper around the other overload. More...
 
void actions::execute_move_unit (const std::vector< map_location > &steps, bool continued_move, bool skip_ally_sighted, move_unit_spectator *move_spectator)
 Moves a unit across the board. More...
 

Detailed Description

Various functions related to moving units.

Definition in file move.hpp.