#include <create_engine.hpp>
Public Member Functions | |
scenario (const config &data) | |
bool | can_launch_game () const |
void | set_metadata () |
int | num_players () const |
std::string | map_size () const |
bool | player_count_filter (int player_count) const |
Public Member Functions inherited from ng::level | |
level (const config &data) | |
virtual | ~level ()=default |
virtual std::string | id () const |
virtual std::string | name () const |
virtual std::string | icon () const |
virtual std::string | description () const |
virtual bool | allow_era_choice () const |
void | set_data (const config &data) |
const config & | data () const |
config & | data () |
Protected Member Functions | |
void | set_sides () |
Protected Attributes | |
std::unique_ptr< gamemap > | map_ |
std::string | map_hash_ |
Protected Attributes inherited from ng::level | |
config | data_ |
Private Member Functions | |
scenario (const scenario &)=delete | |
scenario & | operator= (const scenario &)=delete |
Private Attributes | |
int | num_players_ |
Definition at line 119 of file create_engine.hpp.
ng::scenario::scenario | ( | const config & | data | ) |
Definition at line 50 of file create_engine.cpp.
References set_metadata().
|
privatedelete |
|
virtual |
std::string ng::scenario::map_size | ( | ) | const |
Definition at line 85 of file create_engine.cpp.
References _(), map_, and font::unicode_multiplication_sign.
Referenced by gui2::dialogs::mp_create_game::update_details().
|
inline |
Definition at line 128 of file create_engine.hpp.
References num_players_.
Referenced by gui2::dialogs::mp_create_game::update_details().
|
inlinevirtual |
|
virtual |
Implements ng::level.
Reimplemented in ng::user_map.
Definition at line 64 of file create_engine.cpp.
References _(), ng::level::data_, e, ERR_CF, map_, and set_sides().
Referenced by scenario(), and gui2::dialogs::mp_create_game::update_details().
|
protected |
Definition at line 100 of file create_engine.cpp.
References config::add_child(), config::child_range(), ng::level::data_, config::has_child(), map_, and num_players_.
Referenced by set_metadata(), and ng::user_map::set_metadata().
|
protected |
Definition at line 143 of file create_engine.hpp.
Referenced by can_launch_game(), map_size(), set_metadata(), set_sides(), and ng::user_map::user_map().
|
protected |
Definition at line 145 of file create_engine.hpp.
|
private |
Definition at line 151 of file create_engine.hpp.
Referenced by num_players(), player_count_filter(), and set_sides().