15 #ifndef MP_DEPCHECK_HPP_INCLUDED
16 #define MP_DEPCHECK_HPP_INCLUDED
66 void try_era(
const std::string&
id,
bool force =
false);
74 void try_scenario(
const std::string&
id,
bool force =
false);
82 void try_modifications(
const std::vector<std::string>&
ids,
92 void try_modification_by_index(
int index,
bool activate,
bool force =
false);
100 void try_era_by_index(
int index,
bool force =
false);
108 void try_scenario_by_index(
int index,
bool force =
false);
115 const std::string& get_era()
const {
return era_; }
122 const std::string& get_scenario()
const {
return scenario_; }
129 const std::vector<std::string>& get_modifications()
const {
return mods_; }
138 bool is_modification_active(
int index)
const;
145 int get_era_index()
const;
152 int get_scenario_index()
const;
177 {
return id == e.id && type == e.type; }
179 bool operator !=(
const elem& e)
const {
return !(*
this ==
e); }
195 std::vector<std::string> mods_;
204 std::vector<std::string> prev_mods_;
234 bool change_modifications(
const std::vector<std::string>&
modifications);
246 bool conflicts(
const elem& elem1,
const elem& elem2,
bool directonly=
false)
const;
258 bool requires(
const elem& elem1,
const elem& elem2)
const;
267 std::vector<std::string> get_required(
const elem&
e)
const;
277 std::vector<std::string> get_required_not_enabled(
const elem& e)
const;
287 std::vector<std::string> get_conflicting_enabled(
const elem& e)
const;
297 std::vector<std::string> get_required_not_installed(
const elem& e)
const;
308 bool enable_mods_dialog(
const std::vector<std::string>& mods,
320 bool disable_mods_dialog(
const std::vector<std::string>& mods,
331 std::string change_era_dialog(
const std::vector<std::string>& eras);
342 (
const std::vector<std::string>& scenarios);
358 bool exists(
const elem& e)
const;
GLuint GLuint GLsizei GLenum type
bool operator!=(const config &a, const config &b)
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definitions for the interface to Wesnoth Markup Language (WML).
MAKE_ENUM(component_availabilty,(SP,"sp")(MP,"mp")(HYBRID,"hybrid")) class manager
Note to all triers: It's not guaranteed that the specified component will be selected (if the user de...
This module controls the multiplayer lobby.
bool exists(const image::locator &i_locator)
returns true if the given image actually exists, without loading it.
static UNUSEDNOWARN std::string _(const char *str)
bool operator==(const config &a, const config &b)
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
const std::vector< std::string > & modifications(bool mp)
A config object defines a single node in a WML file, with access to child nodes.
Defines the MAKE_ENUM macro.
GLsizei const GLcharARB ** string