mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 22:56:50 +00:00

Having a hidden switch that previously turned the_end() into a no-op is absolutely pointless. I've had better ideas.
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
/*
|
|
Copyright (C) 2003 - 2013 by David White <dave@whitevine.net>
|
|
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY.
|
|
|
|
See the COPYING file for more details.
|
|
*/
|
|
|
|
/** @file */
|
|
|
|
#ifndef INTRO_HPP_INCLUDED
|
|
#define INTRO_HPP_INCLUDED
|
|
|
|
class display;
|
|
|
|
#include <string>
|
|
|
|
/**
|
|
* Displays a simple fading screen with any user-provided text.
|
|
* Used after the end of single-player campaigns.
|
|
*
|
|
* @param text Text to display, centered on the screen.
|
|
*
|
|
* @param duration In milliseconds, for how much time the text will
|
|
* be displayed on screen.
|
|
*/
|
|
void the_end(display &disp, std::string text, unsigned int duration);
|
|
|
|
#endif /* ! INTRO_HPP_INCLUDED */
|