#include <create_engine.hpp>
Public Member Functions | |
random_map (const config &data) | |
virtual | ~random_map () |
const config & | generator_data () const |
std::string | name () const |
std::string | description () const |
std::string | id () const |
std::string | generator_name () const |
map_generator * | create_map_generator () const |
bool | generate_whole_scenario () const |
![]() | |
scenario (const config &data) | |
virtual | ~scenario () |
bool | can_launch_game () const |
surface | create_image_surface (const SDL_Rect &image_rect) |
void | set_metadata () |
int | num_players () const |
std::string | map_size () const |
![]() | |
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 std::string | icon () const |
virtual bool | allow_era_choice () const |
void | set_data (const config &data) |
const config & | data () const |
config & | data () |
Private Member Functions | |
random_map (const random_map &) | |
void | operator= (const random_map &) |
Private Attributes | |
config | generator_data_ |
bool | generate_whole_scenario_ |
std::string | generator_name_ |
Additional Inherited Members | |
![]() | |
void | set_sides () |
![]() | |
boost::scoped_ptr< gamemap > | map_ |
surface | minimap_img_ |
std::string | map_hash_ |
![]() | |
config | data_ |
Definition at line 120 of file create_engine.hpp.
ng::random_map::random_map | ( | const config & | data | ) |
Definition at line 262 of file create_engine.cpp.
References config::child(), ng::level::data_, generator_data_, config::has_attribute(), and config::has_child().
|
virtual |
Definition at line 285 of file create_engine.cpp.
|
private |
map_generator * ng::random_map::create_map_generator | ( | ) | const |
Definition at line 319 of file create_engine.cpp.
References create_map_generator(), generator_data(), and generator_name().
Referenced by ng::create_engine::set_current_level().
|
virtual |
Reimplemented from ng::level.
Definition at line 299 of file create_engine.cpp.
References ng::level::data_.
bool ng::random_map::generate_whole_scenario | ( | ) | const |
Definition at line 309 of file create_engine.cpp.
References generate_whole_scenario_.
Referenced by ng::create_engine::init_generated_level_data().
const config & ng::random_map::generator_data | ( | ) | const |
Definition at line 289 of file create_engine.cpp.
References generator_data_.
Referenced by create_map_generator().
std::string ng::random_map::generator_name | ( | ) | const |
Definition at line 314 of file create_engine.cpp.
References generator_name_.
Referenced by create_map_generator().
|
virtual |
Reimplemented from ng::level.
Definition at line 304 of file create_engine.cpp.
References ng::level::data_.
Referenced by ng::create_engine::find_level_by_id(), and ng::create_engine::find_level_type_by_id().
|
virtual |
Reimplemented from ng::level.
Definition at line 294 of file create_engine.cpp.
References ng::level::data_.
|
private |
|
private |
Definition at line 143 of file create_engine.hpp.
Referenced by generate_whole_scenario().
|
private |
Definition at line 141 of file create_engine.hpp.
Referenced by generator_data(), and random_map().
|
private |
Definition at line 144 of file create_engine.hpp.
Referenced by generator_name().