1 // $Id: textscroller.hpp 5330 2008-02-18 19:30:28Z sommer $
3 // SuperTux -- LevelIntro screen
4 // Copyright (C) 2008 Christoph Sommer <christoph.sommer@2008.expires.deltadevelopment.de>
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 #ifndef __LEVELINTRO_H__
22 #define __LEVELINTRO_H__
30 #include "math/vector.hpp"
31 #include "math/rect.hpp"
33 #include "sprite/sprite.hpp"
41 * Screen that welcomes the player to a level
43 class LevelIntro : public Screen
46 LevelIntro(const Level* level, const Statistics* best_level_statistics);
47 virtual ~LevelIntro();
50 void draw(DrawingContext& context);
51 void update(float elapsed_time);
54 const Level* level; /**< The level of which this is the intro screen */
55 const Statistics* best_level_statistics; /**< Best level statistics of the level of which is the intro screen */
56 std::auto_ptr<Sprite> player_sprite; /**< Sprite representing the player */
57 float player_sprite_py; /**< Position (y axis) for the player sprite */
58 float player_sprite_vy; /**< Velocity (y axis) for the player sprite */
59 Timer player_sprite_jump_timer; /**< When timer fires, the player sprite will "jump" */