Various functions related to moving units. More...
#include "units/map.hpp"
#include "game_events/fwd.hpp"
#include "synced_commands.hpp"
#include <vector>
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... | |
Various functions related to moving units.
Definition in file move.hpp.