The Battle for Wesnoth  1.19.1+dev
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
ng::level Class Referenceabstract

Base class for all level type classes. More...

#include <create_engine.hpp>

Inheritance diagram for ng::level:

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

Protected Attributes

config data_

Private Member Functions

 level (const level &)=delete
leveloperator= (const level &)=delete

Detailed Description

Base class for all level type classes.

Definition at line 60 of file create_engine.hpp.

Constructor & Destructor Documentation

◆ level() [1/2]

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

Definition at line 45 of file create_engine.cpp.

◆ ~level()

virtual ng::level::~level ( )

◆ level() [2/2]

ng::level::level ( const level )

Member Function Documentation

◆ allow_era_choice()

virtual bool ng::level::allow_era_choice ( ) const

◆ can_launch_game()

virtual bool ng::level::can_launch_game ( ) const
pure virtual

◆ data() [1/2]

config& ng::level::data ( )

Definition at line 106 of file create_engine.hpp.

References data_.

◆ data() [2/2]

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

◆ description()

virtual std::string ng::level::description ( ) const

◆ icon()

virtual std::string ng::level::icon ( ) const

Definition at line 81 of file create_engine.hpp.

References data_.

Referenced by gui2::dialogs::mp_create_game::pre_show().

◆ id()

virtual std::string ng::level::id ( ) const

◆ name()

virtual std::string ng::level::name ( ) const

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().

◆ operator=()

level& ng::level::operator= ( const level )

◆ player_count_filter()

virtual bool ng::level::player_count_filter ( int  player_count) const
pure virtual

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

◆ set_data()

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

Definition at line 96 of file create_engine.hpp.

References data(), and data_.

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

◆ set_metadata()

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

Member Data Documentation

◆ data_

config ng::level::data_

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