The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ng::campaign Class Reference

#include <create_engine.hpp>

Inheritance diagram for ng::campaign:

Public Member Functions

 campaign (const config &data)
 
bool can_launch_game () const
 
void set_metadata ()
 
void mark_if_completed ()
 
std::string id () const
 
bool allow_era_choice () const
 
int min_players () const
 
int max_players () const
 
bool player_count_filter (int player_count) const
 
std::pair< utils::irdya_date, utils::irdya_datedates () const
 
- Public Member Functions inherited from ng::level
 level (const config &data)
 
virtual ~level ()=default
 
virtual std::string name () const
 
virtual std::string icon () const
 
virtual std::string description () const
 
void set_data (const config &data)
 
const configdata () const
 
configdata ()
 

Private Member Functions

 campaign (const campaign &)=delete
 
campaignoperator= (const campaign &)=delete
 

Private Attributes

std::string id_
 
bool allow_era_choice_
 
std::string image_label_
 
int min_players_
 
int max_players_
 
std::pair< utils::irdya_date, utils::irdya_datedates_
 

Additional Inherited Members

- Protected Attributes inherited from ng::level
config data_
 

Detailed Description

Definition at line 213 of file create_engine.hpp.

Constructor & Destructor Documentation

◆ campaign() [1/2]

ng::campaign::campaign ( const config data)

◆ campaign() [2/2]

ng::campaign::campaign ( const campaign )
privatedelete

Member Function Documentation

◆ allow_era_choice()

bool ng::campaign::allow_era_choice ( ) const
inlinevirtual

Reimplemented from ng::level.

Definition at line 229 of file create_engine.hpp.

References allow_era_choice_.

◆ can_launch_game()

bool ng::campaign::can_launch_game ( ) const
virtual

Implements ng::level.

Definition at line 202 of file create_engine.cpp.

References ng::level::data_, and config::empty().

◆ dates()

std::pair<utils::irdya_date, utils::irdya_date> ng::campaign::dates ( ) const
inline

Definition at line 249 of file create_engine.hpp.

References dates_.

◆ id()

std::string ng::campaign::id ( ) const
inlinevirtual

Reimplemented from ng::level.

Definition at line 224 of file create_engine.hpp.

References id_.

◆ mark_if_completed()

void ng::campaign::mark_if_completed ( )

◆ max_players()

int ng::campaign::max_players ( ) const
inline

Definition at line 239 of file create_engine.hpp.

References max_players_.

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

◆ min_players()

int ng::campaign::min_players ( ) const
inline

Definition at line 234 of file create_engine.hpp.

References min_players_.

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

◆ operator=()

campaign& ng::campaign::operator= ( const campaign )
privatedelete

◆ player_count_filter()

bool ng::campaign::player_count_filter ( int  player_count) const
inlinevirtual

Implements ng::level.

Definition at line 244 of file create_engine.hpp.

◆ set_metadata()

void ng::campaign::set_metadata ( )
virtual

Implements ng::level.

Definition at line 207 of file create_engine.cpp.

References ng::level::data_, image_label_, max_players_, and min_players_.

Referenced by campaign().

Member Data Documentation

◆ allow_era_choice_

bool ng::campaign::allow_era_choice_
private

Definition at line 259 of file create_engine.hpp.

Referenced by allow_era_choice().

◆ dates_

std::pair<utils::irdya_date, utils::irdya_date> ng::campaign::dates_
private

Definition at line 263 of file create_engine.hpp.

Referenced by campaign(), and dates().

◆ id_

std::string ng::campaign::id_
private

Definition at line 258 of file create_engine.hpp.

Referenced by id().

◆ image_label_

std::string ng::campaign::image_label_
private

Definition at line 260 of file create_engine.hpp.

Referenced by set_metadata().

◆ max_players_

int ng::campaign::max_players_
private

Definition at line 262 of file create_engine.hpp.

Referenced by max_players(), and set_metadata().

◆ min_players_

int ng::campaign::min_players_
private

Definition at line 261 of file create_engine.hpp.

Referenced by min_players(), and set_metadata().


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