Defines | Functions | Variables

intro.cpp File Reference

Introduction sequence at start of a scenario, End-screen after end of campaign. More...

#include "global.hpp"
#include "intro.hpp"
#include "display.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "storyscreen/interface.hpp"
Include dependency graph for intro.cpp:

Go to the source code of this file.

Defines

#define ERR_NG   LOG_STREAM(err, log_engine)
#define LOG_NG   LOG_STREAM(info, log_engine)

Functions

static void the_end_old (display &disp, std::string text, unsigned int duration)
void set_new_storyscreen (bool enabled)
 Enables/disables the new (work in progress) story screen code.
void the_end (display &disp, std::string text, unsigned int duration)
 Displays a simple fading screen with any user-provided text.

Variables

static lg::log_domain log_engine ("engine")
static bool use_shadowm_storyscreen = false

Detailed Description

Introduction sequence at start of a scenario, End-screen after end of campaign.

Definition in file intro.cpp.


Define Documentation

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 33 of file intro.cpp.

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 34 of file intro.cpp.

Referenced by set_new_storyscreen().


Function Documentation

void set_new_storyscreen ( bool  enabled  ) 

Enables/disables the new (work in progress) story screen code.

Definition at line 91 of file intro.cpp.

References LOG_NG, and use_shadowm_storyscreen.

Referenced by game_controller::game_controller().

Here is the caller graph for this function:

void the_end ( display disp,
std::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 97 of file intro.cpp.

References show_endscreen(), the_end_old(), and use_shadowm_storyscreen.

Referenced by game_controller::launch_game().

Here is the call graph for this function:

Here is the caller graph for this function:

static void the_end_old ( display disp,
std::string  text,
unsigned int  duration 
) [static]

Variable Documentation

lg::log_domain log_engine("engine") [static]
bool use_shadowm_storyscreen = false [static]

Definition at line 36 of file intro.cpp.

Referenced by set_new_storyscreen(), and the_end().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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