31 #define ERR_NG LOG_STREAM(err, log_engine) 32 #define LOG_NG LOG_STREAM(info, log_engine) 40 const map_location& from,
int orig_village_owner,
bool time_bonus)
78 if ( un_it == units.
end() ) {
101 units.
erase(recall_loc);
103 un->anim_comp().clear_haloes();
virtual void write(config &cfg) const
Writes this into the provided config.
base class for classes that clear srhoud (move/recruit/recall)
virtual const unit_map & units() const override
void un_recall_unit(const unit &u)
virtual bool undo(int side)
Undoes this action.
std::size_t erase(const map_location &l)
Erases the unit at location l, if any.
virtual void write(config &cfg) const
Writes this into the provided config.
std::shared_ptr< unit > unit_ptr
std::shared_ptr< const unit > unit_const_ptr
void return_village()
Change village owner on undo.
This class stores all the data for a single 'side' (in game nomenclature).
void execute_undo_umc_wml()
int un_recall_unit_cost(const unit &u)
void spend_gold(const int amount)
void invalidate_all()
Function to invalidate all tiles.
void write(config &cfg) const
Encapsulates the map of the game.
unit_iterator find(std::size_t id)
std::shared_ptr< wb::manager > whiteboard
Various functions related to the creation of units (recruits, recalls, and placed units)...
pointer get_shared_ptr() const
This is exactly the same as operator-> but it's slightly more readable, and can replace &*iter syntax...
static lg::log_domain log_engine("engine")
recall_action(const unit_const_ptr recalled, const map_location &loc, const map_location &from, int orig_village_owner, bool time_bonus)
config & add_child(config_key_type key)
void add(const unit_ptr &ptr, int pos=-1)
Add a unit to the list.
Standard logging facilities (interface).
recall_list_manager & recall_list()
Container associating units to locations.
route_t route
The hexes occupied by the affected unit during this action.
A config object defines a single node in a WML file, with access to child nodes.
actions that are undoable (this does not include update_shroud and auto_shroud)
static game_display * get_singleton()
void write(config &cfg) const