The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
ng::level Class Referenceabstract

#include <create_engine.hpp>

Inheritance diagram for ng::level:
Inheritance graph

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 configdata () const
 
configdata ()
 

Protected Attributes

config data_
 

Private Member Functions

 level (const level &)
 
void operator= (const level &)
 

Detailed Description

Definition at line 32 of file create_engine.hpp.

Constructor & Destructor Documentation

ng::level::level ( const config data)

Definition at line 80 of file create_engine.cpp.

virtual ng::level::~level ( )
inlinevirtual

Definition at line 36 of file create_engine.hpp.

ng::level::level ( const level )
private

Member Function Documentation

bool ng::level::allow_era_choice ( ) const
virtual
virtual surface ng::level::create_image_surface ( const SDL_Rect &  image_rect)
pure virtual

Implemented in ng::campaign, and ng::scenario.

Referenced by mp::create::draw_level_image().

const config & ng::level::data ( ) const
config & ng::level::data ( )

Definition at line 120 of file create_engine.cpp.

References data_.

std::string ng::level::description ( ) const
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().

std::string ng::level::icon ( ) const
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().

std::string ng::level::id ( ) const
virtual
ng::level::MAKE_ENUM ( TYPE  ,
(SCENARIO,"scenario")(USER_MAP,"user_map")(USER_SCENARIO,"user_scenario")(RANDOM_MAP,"random_map")(CAMPAIGN,"campaign")(SP_CAMPAIGN,"sp_campaign")   
) const
pure virtual
std::string ng::level::name ( ) const
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().

void ng::level::operator= ( const level )
private
void ng::level::set_data ( const config data)

Definition at line 110 of file create_engine.cpp.

References data(), and data_.

Referenced by ng::create_engine::init_generated_level_data().

virtual void ng::level::set_metadata ( )
pure virtual

Member Data Documentation

config ng::level::data_
protected

The documentation for this class was generated from the following files: