#include <create_engine.hpp>
Public Member Functions | |
level (const config &data) | |
virtual | ~level () |
MAKE_ENUM (TYPE,(SCENARIO,"scenario")(USER_MAP,"user_map")(USER_SCENARIO,"user_scenario")(RANDOM_MAP,"random_map")(CAMPAIGN,"campaign")(SP_CAMPAIGN,"sp_campaign")) virtual bool can_launch_game() const =0 | |
virtual surface | create_image_surface (const SDL_Rect &image_rect)=0 |
virtual void | set_metadata ()=0 |
virtual std::string | name () const |
virtual std::string | icon () const |
virtual std::string | description () const |
virtual std::string | id () 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 &) | |
void | operator= (const level &) |
Definition at line 32 of file create_engine.hpp.
ng::level::level | ( | const config & | data | ) |
Definition at line 80 of file create_engine.cpp.
|
inlinevirtual |
Definition at line 36 of file create_engine.hpp.
|
private |
|
virtual |
Reimplemented in ng::campaign.
Definition at line 105 of file create_engine.cpp.
References data_.
Referenced by ng::create_engine::get_parameters(), mp::get_selected_helper(), mp::create::hide_children(), mp::create::init_level_changed(), and gui2::tcampaign_settings::update_lists().
|
pure virtual |
Implemented in ng::campaign, and ng::scenario.
Referenced by mp::create::draw_level_image().
const config & ng::level::data | ( | ) | const |
Definition at line 115 of file create_engine.cpp.
References data_.
Referenced by ng::create_engine::init_generated_level_data(), gui2::tcampaign_settings::pre_show(), ng::create_engine::prepare_for_campaign(), ng::create_engine::prepare_for_other(), ng::create_engine::prepare_for_scenario(), mp::create::process_event_impl(), and set_data().
config & ng::level::data | ( | ) |
Definition at line 120 of file create_engine.cpp.
References data_.
|
virtual |
Reimplemented in ng::random_map, and ng::user_map.
Definition at line 85 of file create_engine.cpp.
References data_.
Referenced by mp::get_selected_helper(), and mp::create::process_event_impl().
|
virtual |
Definition at line 95 of file create_engine.cpp.
References data_.
Referenced by mp::get_selected_helper(), and ng::create_engine::levels_menu_item_names().
|
virtual |
Reimplemented in ng::campaign, ng::random_map, and ng::user_map.
Definition at line 100 of file create_engine.cpp.
References data_.
Referenced by ng::create_engine::find_level_by_id(), ng::create_engine::find_level_type_by_id(), mp::get_selected_helper(), mp::create::synchronize_selections(), and mp::create::~create().
|
pure virtual |
|
virtual |
Reimplemented in ng::random_map, and ng::user_map.
Definition at line 90 of file create_engine.cpp.
References data_.
Referenced by mp::get_selected_helper(), and ng::create_engine::levels_menu_item_names().
Definition at line 110 of file create_engine.cpp.
Referenced by ng::create_engine::init_generated_level_data().
|
pure virtual |
Implemented in ng::campaign, ng::user_map, and ng::scenario.
Referenced by mp::create::hide_children(), and mp::create::process_event_impl().
|
protected |
Definition at line 64 of file create_engine.hpp.
Referenced by allow_era_choice(), ng::campaign::can_launch_game(), data(), description(), ng::user_map::description(), ng::random_map::description(), icon(), id(), ng::random_map::id(), ng::campaign::mark_if_completed(), name(), ng::random_map::name(), ng::random_map::random_map(), set_data(), ng::scenario::set_metadata(), ng::campaign::set_metadata(), and ng::scenario::set_sides().