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 Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ng::scenario Class Reference

#include <create_engine.hpp>

Inheritance diagram for ng::scenario:
Inheritance graph

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

Protected Member Functions

void set_sides ()
 

Protected Attributes

boost::scoped_ptr< gamemapmap_
 
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_
 

Detailed Description

Definition at line 71 of file create_engine.hpp.

Constructor & Destructor Documentation

ng::scenario::scenario ( const config data)

Definition at line 125 of file create_engine.cpp.

ng::scenario::~scenario ( )
virtual

Definition at line 134 of file create_engine.cpp.

ng::scenario::scenario ( const scenario )
private

Member Function Documentation

bool ng::scenario::can_launch_game ( ) const

Definition at line 138 of file create_engine.cpp.

References map_.

surface ng::scenario::create_image_surface ( const SDL_Rect &  image_rect)
virtual
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().

void ng::scenario::operator= ( const scenario )
private
void ng::scenario::set_metadata ( )
virtual
void ng::scenario::set_sides ( )
protected

Member Data Documentation

boost::scoped_ptr<gamemap> ng::scenario::map_
protected
std::string ng::scenario::map_hash_
protected

Definition at line 92 of file create_engine.hpp.

Referenced by create_image_surface().

surface ng::scenario::minimap_img_
protected

Definition at line 91 of file create_engine.hpp.

Referenced by create_image_surface().

int ng::scenario::num_players_
private

Definition at line 98 of file create_engine.hpp.

Referenced by num_players(), and set_sides().


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