#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>
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. |
Definition in file intro.cpp.
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().
Definition at line 91 of file intro.cpp.
References _, a, surface::assign(), b, font::BIGMAP_COLOUR, display::delay(), draw_solid_tinted_rectangle(), font::draw_text(), lg::engine, lg::err, display::flip(), config::get_children(), image::get_image(), CVideo::getSurface(), CVideo::getx(), CVideo::gety(), about::images, font::line_size(), LOG_NG, LOG_STREAM, surface::null(), sound::play_music_repeatedly(), gui::button::pressed(), events::pump(), events::raise_draw_event(), events::raise_process_event(), scale_surface(), gui::widget::set_location(), show_intro_part_helper(), gui::show_title(), font::SIZE_XLARGE, utils::string_bool(), update_rect(), update_whole_screen(), and display::video().
Referenced by show_intro().
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] |
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.
The solution is not very clean but the entire routine could use a cleanup.
Definition at line 269 of file intro.cpp.
References current_language_rtl(), display::delay(), draw_solid_tinted_rectangle(), font::draw_text(), utils::utf8_iterator::end(), display::flip(), CVideo::getSurface(), CVideo::getx(), CVideo::gety(), font::line_width(), gui::widget::location(), font::NORMAL_COLOUR, gui::button::pressed(), events::pump(), events::raise_draw_event(), events::raise_process_event(), rect, screen_area(), font::SIZE_PLUS, utils::utf8_iterator::substr(), update_rect(), display::video(), and font::word_wrap_text().
Referenced by show_intro_part().
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 |