src/supertux/levelintro.hpp

Go to the documentation of this file.
00001 //  SuperTux -- LevelIntro screen
00002 //  Copyright (C) 2008 Christoph Sommer <christoph.sommer@2008.expires.deltadevelopment.de>
00003 //
00004 //  This program is free software: you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation, either version 3 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program is distributed in the hope that it will be useful,
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016 
00017 #ifndef HEADER_SUPERTUX_SUPERTUX_LEVELINTRO_HPP
00018 #define HEADER_SUPERTUX_SUPERTUX_LEVELINTRO_HPP
00019 
00020 #include "sprite/sprite.hpp"
00021 #include "supertux/level.hpp"
00022 #include "supertux/screen.hpp"
00023 #include "supertux/timer.hpp"
00024 
00025 class DrawingContext;
00026 class Surface;
00027 
00031 class LevelIntro : public Screen
00032 {
00033 private:
00034   static Color header_color;
00035   static Color author_color;
00036   static Color stat_hdr_color;
00037   static Color stat_color;
00038 
00039 public:
00040   LevelIntro(const Level* level, const Statistics* best_level_statistics);
00041   virtual ~LevelIntro();
00042 
00043   void setup();
00044   void draw(DrawingContext& context);
00045   void update(float elapsed_time);
00046 
00047 private:
00048   const Level* level; 
00049   const Statistics* best_level_statistics; 
00050   SpritePtr player_sprite; 
00051   float player_sprite_py; 
00052   float player_sprite_vy; 
00053   Timer player_sprite_jump_timer; 
00055 private:
00056   LevelIntro(const LevelIntro&);
00057   LevelIntro& operator=(const LevelIntro&);
00058 };
00059 
00060 #endif
00061 
00062 /* EOF */

Generated on Mon Jun 9 03:38:22 2014 for SuperTux by  doxygen 1.5.1