00001 /* $Id: intro.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2003 - 2012 by David White <dave@whitevine.net> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY. 00012 00013 See the COPYING file for more details. 00014 */ 00015 00016 /** @file */ 00017 00018 #ifndef INTRO_HPP_INCLUDED 00019 #define INTRO_HPP_INCLUDED 00020 00021 class display; 00022 00023 #include <string> 00024 00025 /** 00026 * Displays a simple fading screen with any user-provided text. 00027 * Used after the end of single-player campaigns. 00028 * 00029 * @param text Text to display, centered on the screen. 00030 * 00031 * @param duration In milliseconds, for how much time the text will 00032 * be displayed on screen. 00033 */ 00034 void the_end(display &disp, std::string text, unsigned int duration); 00035 00036 /** 00037 * Enables/disables the new (work in progress) story screen 00038 * code. 00039 */ 00040 void set_new_storyscreen(bool enabled); 00041 00042 #endif /* ! INTRO_HPP_INCLUDED */
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:02 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |