Defines | Functions | Variables

storyscreen/interface.cpp File Reference

Storyscreen controller (wrapper interface). More...

#include "global.hpp"
#include "foreach.hpp"
#include "variable.hpp"
#include "storyscreen/interface.hpp"
#include "storyscreen/controller.hpp"
#include "display.hpp"
#include "game_events.hpp"
#include "gettext.hpp"
#include "intro.hpp"
#include "language.hpp"
#include "log.hpp"
#include "sound.hpp"
#include "text.hpp"
#include "stub.hpp"
Include dependency graph for interface.cpp:

Go to the source code of this file.

Defines

#define LOG_NG   LOG_STREAM(info, log_engine)

Functions

void show_story (display &disp, const std::string &scenario_name, const config::const_child_itors &story)
 Function to show an introduction sequence segment using story WML.
void show_endscreen (display &, const t_string &, unsigned int)
 Displays a simple fading screen with any user-provided text.

Variables

static lg::log_domain log_engine ("engine")

Detailed Description

Storyscreen controller (wrapper interface).

Definition in file interface.cpp.


Define Documentation

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 38 of file interface.cpp.

Referenced by show_endscreen().


Function Documentation

void show_endscreen ( display disp,
const t_string text,
unsigned int  duration 
)

Displays a simple fading screen with any user-provided text.

Used after the end of single-player campaigns.

Parameters:
text Text to display, centered on the screen.
duration In milliseconds, for how much time the text will be displayed on screen.

Definition at line 92 of file interface.cpp.

References LOG_NG, and STUB.

Referenced by the_end().

Here is the caller graph for this function:

void show_story ( display disp,
const std::string &  scenario_name,
const config::const_child_itors story 
)

Function to show an introduction sequence segment using story WML.

The WML config data (story_cfg) has a format similar to:

 [part]
     id='id'
     story='story'
     image='img'
 [/part]

Where 'id' is a unique identifier, 'story' is text describing the storyline,and 'img' is a background image. Each part of the sequence will be displayed in turn, with the user able to go to the next part, or skip it entirely.

Returns:
is NEXT if the segment played to the end, BACK if the segment played to the beginning, and QUIT if the story was quit

Definition at line 57 of file interface.cpp.

References storyscreen::BACK, storyscreen::NEXT, storyscreen::QUIT, and storyscreen::controller::show().

Referenced by playsingle_controller::play_scenario().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

lg::log_domain log_engine("engine") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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