Functions | Variables

about Namespace Reference

Display credits about all contributors. More...

Functions

static void add_lines (std::vector< std::string > &res, config const &c)
 Given a vector of strings, and a config representing an [about] section, add all the credits lines from the about section to the list of strings.
std::vector< std::string > get_text (const std::string &campaign)
void set_about (const config &cfg)
void show_about (display &disp, const std::string &campaign)
 Show credits with list of contributors.

Variables

static config about_list = config()
static std::map< std::string,
std::string > 
images
static std::string images_default

Detailed Description

Display credits about all contributors.

This module is used from the startup screen.
When show_about() is called, a list of contributors to the game will be presented to the user.


Function Documentation

static void about::add_lines ( std::vector< std::string > &  res,
config const &  c 
) [static]

Given a vector of strings, and a config representing an [about] section, add all the credits lines from the about section to the list of strings.

Definition at line 47 of file about.cpp.

References config::child_range(), and utils::split().

Here is the call graph for this function:

std::vector< std::string > about::get_text ( const std::string &  campaign  ) 

Referenced by help::generate_about_text().

Here is the caller graph for this function:

void about::set_about ( const config cfg  ) 

Referenced by game_controller::init_config().

Here is the caller graph for this function:

void about::show_about ( display disp,
const std::string &  campaign 
)

Show credits with list of contributors.

Names of people are shown scrolling up like in movie-credits.
Uses map from wesnoth or campaign as background.

Referenced by do_gameloop(), and game_controller::launch_game().

Here is the caller graph for this function:


Variable Documentation

Definition at line 39 of file about.cpp.

std::map<std::string , std::string> about::images [static]

Definition at line 40 of file about.cpp.

std::string about::images_default [static]

Definition at line 41 of file about.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:16:31 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs