intro.cpp File Reference

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

#include "global.hpp"
#include "display.hpp"
#include "events.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "image.hpp"
#include "intro.hpp"
#include "font.hpp"
#include "key.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "sdl_utils.hpp"
#include "sound.hpp"
#include "util.hpp"
#include "video.hpp"
#include "widgets/button.hpp"
#include "game_events.hpp"
#include "language.hpp"
#include <cstdlib>
#include <sstream>
#include <vector>

Include dependency graph for intro.cpp:

Go to the source code of this file.

Defines

#define LOG_NG   LOG_STREAM(info, engine)

Functions

static bool show_intro_part (display &disp, const config &part, const std::string &scenario)
void show_intro (display &disp, const config &data, const config &level)
 Show an introduction sequence at the start of a scenario.
static bool show_intro_part_helper (display &disp, const config &part, int textx, int texty, gui::button &next_button, gui::button &skip_button, CKey &key)
 show_intro_part() is split into two parts, the second part can cause an utils::invalid_utf8_exception exception and it's to much code to indent.
void the_end (display &disp)
 Black screen with "The End", shown at the end of a campaign.


Detailed Description

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

Definition in file intro.cpp.


Define Documentation

#define LOG_NG   LOG_STREAM(info, engine)

Definition at line 42 of file intro.cpp.


Function Documentation

void show_intro ( display disp,
const config data,
const config level 
)

Show an introduction sequence at the start of a scenario.

Definition at line 48 of file intro.cpp.

References game_events::conditional_passed(), LOG_NG, config::ordered_begin(), config::ordered_end(), show_intro(), show_intro_part(), and type.

Referenced by playsingle_controller::play_scenario(), and show_intro().

bool show_intro_part ( display disp,
const config part,
const std::string &  scenario 
) [static]

static bool show_intro_part_helper ( display disp,
const config part,
int  textx,
int  texty,
gui::button next_button,
gui::button skip_button,
CKey key 
) [static]

void the_end ( display disp  ) 

Black screen with "The End", shown at the end of a campaign.

Definition at line 370 of file intro.cpp.

References _, display::delay(), font::draw_text(), display::flip(), font_size, CVideo::getSurface(), screen_area(), font::SIZE_XLARGE, text, font::text_area(), update_rect(), update_whole_screen(), and display::video().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs