The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Enumerations | Functions
interface.hpp File Reference

Storyscreen controller (wrapper interface). More...

#include <string>
#include "config.hpp"
Include dependency graph for interface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 storyscreen
 

Enumerations

enum  storyscreen::START_POSITION { storyscreen::START_BEGINNING, storyscreen::START_END }
 

Functions

void show_story (CVideo &video, const std::string &scenario_name, const config::const_child_itors &story)
 Shows an introduction sequence using story WML. More...
 

Detailed Description

Storyscreen controller (wrapper interface).

Definition in file interface.hpp.

Function Documentation

void show_story ( CVideo video,
const std::string scenario_name,
const config::const_child_itors story 
)

Shows an introduction sequence using story WML.

Each part of the sequence will be displayed in turn, with the user able to go to the next part, previous part, or skip it entirely.

Definition at line 37 of file interface.cpp.

References storyscreen::BACK, itor, storyscreen::NEXT, storyscreen::QUIT, storyscreen::controller::show(), storyscreen::START_BEGINNING, storyscreen::START_END, and video2::trigger_full_redraw().

Referenced by playsingle_controller::play_scenario().