The Battle for Wesnoth  1.19.5+dev
Namespaces | Macros | Functions | Variables
create.cpp File Reference

Recruiting, recalling. More...

#include "actions/create.hpp"
#include "actions/move.hpp"
#include "actions/undo.hpp"
#include "actions/vision.hpp"
#include "config.hpp"
#include "display.hpp"
#include "filter_context.hpp"
#include "game_events/pump.hpp"
#include "game_state.hpp"
#include "preferences/preferences.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "pathfind/pathfind.hpp"
#include "play_controller.hpp"
#include "recall_list_manager.hpp"
#include "replay.hpp"
#include "resources.hpp"
#include "statistics.hpp"
#include "synced_checkup.hpp"
#include "synced_context.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "units/udisplay.hpp"
#include "units/filter.hpp"
#include "units/types.hpp"
#include "utils/general.hpp"
#include "variable.hpp"
#include "whiteboard/manager.hpp"
Include dependency graph for create.cpp:

Go to the source code of this file.

Namespaces

 actions
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define ERR_NG   LOG_STREAM(err, log_engine)
 

Functions

const std::set< std::string > actions::get_recruits (int side, const map_location &recruit_location)
 Gets the recruitable units from a side's leaders' personal recruit lists who can recruit on or from a specific hex field. More...
 
std::vector< unit_const_ptractions::get_recalls (int side, const map_location &recall_loc)
 Gets the recallable units for a side, restricted by that side's leaders' personal abilities to recall on or from a specific hex field. More...
 
RECRUIT_CHECK actions::check_recall_location (const int side, map_location &recall_location, map_location &recall_from, const unit &unit_recall)
 Checks if there is a location on which to recall unit_recall. More...
 
std::string actions::find_recall_location (const int side, map_location &recall_location, map_location &recall_from, const unit &unit_recall)
 Finds a location on which to recall unit_recall. More...
 
RECRUIT_CHECK actions::check_recruit_location (const int side, map_location &recruit_location, map_location &recruited_from, const std::string &unit_type)
 Checks if there is a location on which to place a recruited unit. More...
 
std::string actions::find_recruit_location (const int side, map_location &recruit_location, map_location &recruited_from, const std::string &unit_type)
 Finds a location on which to place a unit. More...
 
place_recruit_result actions::place_recruit (unit_ptr u, const map_location &recruit_location, const map_location &recruited_from, int cost, bool is_recall, map_location::direction facing=map_location::direction::indeterminate, bool show=false, bool fire_event=true, bool full_movement=false, bool wml_triggered=false)
 Place a unit into the game. More...
 
void actions::recruit_unit (const unit_type &u_type, int side_num, const map_location &loc, const map_location &from)
 Recruits a unit of the given type for the given side. More...
 
bool actions::recall_unit (const std::string &id, team &current_team, const map_location &loc, const map_location &from, map_location::direction facing=map_location::direction::indeterminate)
 Recalls the unit with the indicated ID for the provided team. More...
 

Variables

static lg::log_domain log_engine ("engine")
 

Detailed Description

Recruiting, recalling.

Definition in file create.cpp.

Macro Definition Documentation

◆ DBG_NG

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 54 of file create.cpp.

◆ ERR_NG

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 56 of file create.cpp.

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 55 of file create.cpp.

Variable Documentation

◆ log_engine

lg::log_domain log_engine("engine") ( "engine"  )
static