#include <create_engine.hpp>

Public Member Functions | |
| 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 |
Public Member Functions inherited from ng::level | |
| 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 | 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 Member Functions | |
| void | set_sides () |
Protected Attributes | |
| boost::scoped_ptr< gamemap > | map_ |
| surface | minimap_img_ |
| std::string | map_hash_ |
Protected Attributes inherited from ng::level | |
| config | data_ |
Private Member Functions | |
| scenario (const scenario &) | |
| void | operator= (const scenario &) |
Private Attributes | |
| int | num_players_ |
Definition at line 71 of file create_engine.hpp.
| ng::scenario::scenario | ( | const config & | data | ) |
Definition at line 125 of file create_engine.cpp.
|
virtual |
Definition at line 134 of file create_engine.cpp.
|
private |
| bool ng::scenario::can_launch_game | ( | ) | const |
Definition at line 138 of file create_engine.cpp.
References map_.
|
virtual |
Implements ng::level.
Definition at line 143 of file create_engine.cpp.
References util::encode_hash(), image::getMinimap(), map_, map_hash_, util::md5(), minimap_img_, and surface::null().
| std::string ng::scenario::map_size | ( | ) | const |
Definition at line 185 of file create_engine.cpp.
References _(), map_, and utils::unicode_multiplication_sign.
Referenced by mp::create::process_event_impl().
| int ng::scenario::num_players | ( | ) | const |
Definition at line 180 of file create_engine.cpp.
References num_players_.
Referenced by mp::create::process_event_impl().
|
virtual |
Implements ng::level.
Reimplemented in ng::user_map.
Definition at line 160 of file create_engine.cpp.
References _(), ng::level::data_, twml_exception::dev_message, e, ERR_CF, game_config_manager::get(), map_, game::error::message, and set_sides().
|
protected |
Definition at line 200 of file create_engine.cpp.
References config::add_child(), config::child_count(), config::child_range(), ng::level::data_, map_, num_players_, and pos.
Referenced by set_metadata(), and ng::user_map::set_metadata().
|
protected |
Definition at line 89 of file create_engine.hpp.
Referenced by can_launch_game(), create_image_surface(), map_size(), set_metadata(), set_sides(), and ng::user_map::user_map().
|
protected |
Definition at line 92 of file create_engine.hpp.
Referenced by create_image_surface().
|
protected |
Definition at line 91 of file create_engine.hpp.
Referenced by create_image_surface().
|
private |
Definition at line 98 of file create_engine.hpp.
Referenced by num_players(), and set_sides().
1.8.8