Base class for all level type classes. More...
#include <create_engine.hpp>
Public Member Functions | |
level (const config &data) | |
virtual | ~level ()=default |
virtual void | set_metadata ()=0 |
virtual bool | can_launch_game () const =0 |
virtual bool | player_count_filter (int player_count) const =0 |
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 Attributes | |
config | data_ |
Private Member Functions | |
level (const level &)=delete | |
level & | operator= (const level &)=delete |
Base class for all level type classes.
Definition at line 60 of file create_engine.hpp.
ng::level::level | ( | const config & | data | ) |
Definition at line 46 of file create_engine.cpp.
|
virtualdefault |
|
privatedelete |
|
inlinevirtual |
Reimplemented in ng::campaign.
Definition at line 91 of file create_engine.hpp.
References data_.
Referenced by ng::create_engine::curent_era_cfg(), ng::create_engine::get_parameters(), gui2::dialogs::mp_create_game::on_game_select(), and gui2::dialogs::mp_create_game::pre_show().
|
pure virtual |
Implemented in ng::campaign, and ng::scenario.
Referenced by gui2::dialogs::mp_create_game::dialog_exit_hook().
|
inline |
Definition at line 106 of file create_engine.hpp.
References data_.
|
inline |
Definition at line 101 of file create_engine.hpp.
References data_.
Referenced by ng::campaign::campaign(), sp::configure_campaign(), ng::create_engine::current_level_has_side_data(), gui2::dialogs::sp_options_configure::execute(), ng::create_engine::init_generated_level_data(), gui2::dialogs::mp_create_game::post_show(), ng::create_engine::prepare_for_campaign(), ng::create_engine::prepare_for_other(), ng::create_engine::prepare_for_scenario(), ng::random_map::random_map(), set_data(), gui2::dialogs::mp_create_game::update_details(), and gui2::dialogs::mp_options_helper::update_game_options().
|
inlinevirtual |
Reimplemented in ng::user_map.
Definition at line 86 of file create_engine.hpp.
References data_.
Referenced by gui2::dialogs::mp_create_game::dialog_exit_hook(), gui2::dialogs::mp_create_game::pre_show(), and gui2::dialogs::mp_create_game::update_details().
|
inlinevirtual |
Definition at line 81 of file create_engine.hpp.
References data_.
Referenced by gui2::dialogs::mp_create_game::pre_show().
|
inlinevirtual |
Reimplemented in ng::campaign, and ng::user_map.
Definition at line 71 of file create_engine.hpp.
References data_.
Referenced by gui2::dialogs::mp_create_game::post_show(), gui2::dialogs::mp_create_game::pre_show(), gui2::dialogs::mp_create_game::sync_with_depcheck(), and gui2::dialogs::mp_create_game::update_games_list().
|
inlinevirtual |
Reimplemented in ng::user_map.
Definition at line 76 of file create_engine.hpp.
References data_.
Referenced by gui2::dialogs::mp_create_game::pre_show(), and gui2::dialogs::mp_create_game::update_details().
|
pure virtual |
Implemented in ng::campaign, and ng::scenario.
|
inline |
Definition at line 96 of file create_engine.hpp.
Referenced by ng::create_engine::init_generated_level_data().
|
pure virtual |
Implemented in ng::campaign, ng::user_map, and ng::scenario.
Referenced by gui2::dialogs::mp_create_game::update_details().
|
protected |
Definition at line 112 of file create_engine.hpp.
Referenced by allow_era_choice(), ng::campaign::can_launch_game(), data(), description(), ng::user_map::description(), icon(), id(), ng::campaign::mark_if_completed(), name(), ng::random_map::random_map(), set_data(), ng::scenario::set_metadata(), ng::campaign::set_metadata(), and ng::scenario::set_sides().