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

#include <create_engine.hpp>

Inheritance diagram for ng::user_map:
Inheritance graph

Public Member Functions

 user_map (const config &data, const std::string &name, gamemap *map)
 
virtual ~user_map ()
 
void set_metadata ()
 
std::string name () const
 
std::string description () const
 
std::string id () const
 
- Public Member Functions inherited from ng::scenario
 scenario (const config &data)
 
virtual ~scenario ()
 
bool can_launch_game () const
 
surface create_image_surface (const SDL_Rect &image_rect)
 
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 icon () const
 
virtual bool allow_era_choice () const
 
void set_data (const config &data)
 
const configdata () const
 
configdata ()
 

Private Member Functions

 user_map (const user_map &)
 
void operator= (const user_map &)
 

Private Attributes

std::string name_
 

Additional Inherited Members

- Protected Member Functions inherited from ng::scenario
void set_sides ()
 
- Protected Attributes inherited from ng::scenario
boost::scoped_ptr< gamemapmap_
 
surface minimap_img_
 
std::string map_hash_
 
- Protected Attributes inherited from ng::level
config data_
 

Detailed Description

Definition at line 101 of file create_engine.hpp.

Constructor & Destructor Documentation

ng::user_map::user_map ( const config data,
const std::string name,
gamemap map 
)

Definition at line 225 of file create_engine.cpp.

References ng::scenario::map_.

ng::user_map::~user_map ( )
virtual

Definition at line 234 of file create_engine.cpp.

ng::user_map::user_map ( const user_map )
private

Member Function Documentation

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

Reimplemented from ng::level.

Definition at line 243 of file create_engine.cpp.

References _(), and ng::level::data_.

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

Reimplemented from ng::level.

Definition at line 257 of file create_engine.cpp.

References name_.

Referenced by ng::create_engine::find_level_by_id(), and ng::create_engine::find_level_type_by_id().

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

Reimplemented from ng::level.

Definition at line 252 of file create_engine.cpp.

References name_.

void ng::user_map::operator= ( const user_map )
private
void ng::user_map::set_metadata ( )
virtual

Reimplemented from ng::scenario.

Definition at line 238 of file create_engine.cpp.

References ng::scenario::set_sides().

Member Data Documentation

std::string ng::user_map::name_
private

Definition at line 117 of file create_engine.hpp.

Referenced by id(), and name().


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