#include <create_engine.hpp>
Public Member Functions | |
campaign (const config &data) | |
bool | can_launch_game () const |
void | set_metadata () |
void | mark_if_completed () |
std::string | id () const |
bool | allow_era_choice () const |
int | min_players () const |
int | max_players () const |
bool | player_count_filter (int player_count) const |
std::pair< utils::irdya_date, utils::irdya_date > | dates () const |
Public Member Functions inherited from ng::level | |
level (const config &data) | |
virtual | ~level ()=default |
virtual std::string | name () const |
virtual std::string | icon () const |
virtual std::string | description () const |
void | set_data (const config &data) |
const config & | data () const |
config & | data () |
Private Member Functions | |
campaign (const campaign &)=delete | |
campaign & | operator= (const campaign &)=delete |
Private Attributes | |
std::string | id_ |
bool | allow_era_choice_ |
std::string | image_label_ |
int | min_players_ |
int | max_players_ |
std::pair< utils::irdya_date, utils::irdya_date > | dates_ |
Additional Inherited Members | |
Protected Attributes inherited from ng::level | |
config | data_ |
Definition at line 213 of file create_engine.hpp.
ng::campaign::campaign | ( | const config & | data | ) |
Definition at line 181 of file create_engine.cpp.
References ng::level::data(), dates_, config::has_attribute(), utils::irdya_date::read_date(), and set_metadata().
|
privatedelete |
|
inlinevirtual |
Reimplemented from ng::level.
Definition at line 229 of file create_engine.hpp.
References allow_era_choice_.
|
virtual |
Implements ng::level.
Definition at line 202 of file create_engine.cpp.
References ng::level::data_, and config::empty().
|
inline |
Definition at line 249 of file create_engine.hpp.
References dates_.
|
inlinevirtual |
void ng::campaign::mark_if_completed | ( | ) |
Definition at line 221 of file create_engine.cpp.
References config::child_range(), ng::level::data_, prefs::get(), and prefs::is_campaign_completed().
|
inline |
Definition at line 239 of file create_engine.hpp.
References max_players_.
Referenced by gui2::dialogs::mp_create_game::update_details().
|
inline |
Definition at line 234 of file create_engine.hpp.
References min_players_.
Referenced by gui2::dialogs::mp_create_game::update_details().
|
inlinevirtual |
Implements ng::level.
Definition at line 244 of file create_engine.hpp.
|
virtual |
Implements ng::level.
Definition at line 207 of file create_engine.cpp.
References ng::level::data_, image_label_, max_players_, and min_players_.
Referenced by campaign().
|
private |
Definition at line 259 of file create_engine.hpp.
Referenced by allow_era_choice().
|
private |
Definition at line 263 of file create_engine.hpp.
Referenced by campaign(), and dates().
|
private |
Definition at line 258 of file create_engine.hpp.
Referenced by id().
|
private |
Definition at line 260 of file create_engine.hpp.
Referenced by set_metadata().
|
private |
Definition at line 262 of file create_engine.hpp.
Referenced by max_players(), and set_metadata().
|
private |
Definition at line 261 of file create_engine.hpp.
Referenced by min_players(), and set_metadata().