The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
storyscreen
interface.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2009 - 2016 by Ignacio R. Morelle <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
/**
16
* @file
17
* Storyscreen controller (wrapper interface).
18
*/
19
20
#ifndef STORYSCREEN_HPP_INCLUDED
21
#define STORYSCREEN_HPP_INCLUDED
22
23
#include <string>
24
25
#include "
config.hpp
"
26
27
class
vconfig
;
28
class
CVideo
;
29
class
t_string
;
30
31
namespace
storyscreen
{
32
33
enum
START_POSITION
{
34
START_BEGINNING
,
35
START_END
36
};
37
38
}
/* storyscreen namespace */
39
40
/**
41
* Shows an introduction sequence using story WML.
42
*
43
* Each part of the sequence will be displayed in turn, with the user
44
* able to go to the next part, previous part, or skip it entirely.
45
*/
46
void
show_story
(
CVideo
& video,
const
std::string
&scenario_name,
47
const
config::const_child_itors
&story);
48
49
#endif
/* ! STORYSCREEN_HPP_INCLUDED */
t_string
Definition:
tstring.hpp:113
storyscreen::START_END
Definition:
interface.hpp:35
CVideo
Definition:
video.hpp:58
config.hpp
Definitions for the interface to Wesnoth Markup Language (WML).
config::const_child_itors
std::pair< const_child_iterator, const_child_iterator > const_child_itors
Definition:
config.hpp:214
show_story
void show_story(CVideo &video, const std::string &scenario_name, const config::const_child_itors &story)
Shows an introduction sequence using story WML.
Definition:
interface.cpp:37
storyscreen::START_BEGINNING
Definition:
interface.hpp:34
vconfig
A variable-expanding proxy for the config class.
Definition:
variable.hpp:36
storyscreen::START_POSITION
START_POSITION
Definition:
interface.hpp:33
storyscreen
Definition:
controller.cpp:43
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8