24 #define ERR_NG LOG_STREAM(err, log_engine)
25 #define WRN_NG LOG_STREAM(warn, log_engine)
26 #define LOG_NG LOG_STREAM(info, log_engine)
27 #define DBG_NG LOG_STREAM(debug, log_engine)
37 campaign_xtra_defines(),
55 campaign_define(cfg[
"campaign_define"]),
56 campaign_xtra_defines(
utils::
split(cfg[
"campaign_extra_defines"])),
57 scenario_define(cfg[
"scenario_define"]),
58 era_define(cfg[
"era_define"]),
60 campaign(cfg[
"campaign"]),
61 abbrev(cfg[
"abbrev"]),
62 end_credits(cfg[
"end_credits"].to_bool(true)),
63 end_text(cfg[
"end_text"]),
64 end_text_duration(cfg[
"end_text_duration"]),
66 random_mode(cfg[
"random_mode"]),
67 oos_debug(cfg[
"oos_debug"].to_bool(false))
73 campaign_type(gc.campaign_type),
74 campaign_define(gc.campaign_define),
75 campaign_xtra_defines(gc.campaign_xtra_defines),
76 scenario_define(gc.scenario_define),
77 era_define(gc.era_define),
78 mod_defines(gc.mod_defines),
79 campaign(gc.campaign),
81 end_credits(gc.end_credits),
82 end_text(gc.end_text),
83 end_text_duration(gc.end_text_duration),
84 difficulty(gc.difficulty),
85 random_mode(gc.random_mode),
86 oos_debug(gc.oos_debug)
96 cfg[
"campaign_type"] = campaign_type.to_string();
115 if(this->campaign_type == CAMPAIGN_TYPE::MULTIPLAYER) {
116 return this->
campaign.empty() ?
"multiplayer" :
"scenario";
119 return this->campaign_type.to_string();
125 return this->campaign_type == CAMPAIGN_TYPE::MULTIPLAYER && this->
campaign.empty();
unsigned int end_text_duration
for how long the end-of-campaign text is shown
bool end_credits
whether to show the standard credits at the end
std::string label
Name of the game (e.g.
std::string get_tagname() const
const std::string DEFAULT_DIFFICULTY("NORMAL")
The default difficulty setting for campaigns.
Definitions for the interface to Wesnoth Markup Language (WML).
static lg::log_domain log_engine("engine")
std::string campaign_define
If there is a define the campaign uses to customize data.
std::string end_text
end-of-campaign text
std::string campaign
the campaign being played
Templates and utility-routines for strings and numbers.
std::string era_define
If there is a define the era uses to customize data.
std::string join(T const &v, const std::string &s=",")
Generates a new string joining container items in a list.
std::string abbrev
the campaign abbreviation
std::vector< std::string > campaign_xtra_defines
more customization of data
std::string scenario_define
If there is a define the scenario uses to customize data.
std::vector< std::string > mod_defines
If there are defines the modifications use to customize data.
std::string difficulty
The difficulty level the game is being played on.
bool is_normal_mp_game() const
Standard logging facilities (interface).
std::vector< std::string > split(std::string const &val, const char c, const int flags)
Splits a (comma-)separated string into a vector of pieces.
A config object defines a single node in a WML file, with access to child nodes.
const std::string version
GLsizei const GLcharARB ** string