src/worldmap/level.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2004 Ingo Ruhnke <grumbel@gmx.de>
00003 //  Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
00004 //
00005 //  This program is free software: you can redistribute it and/or modify
00006 //  it under the terms of the GNU General Public License as published by
00007 //  the Free Software Foundation, either version 3 of the License, or
00008 //  (at your option) any later version.
00009 //
00010 //  This program is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //  GNU General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU General Public License
00016 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 
00018 #ifndef HEADER_SUPERTUX_WORLDMAP_LEVEL_HPP
00019 #define HEADER_SUPERTUX_WORLDMAP_LEVEL_HPP
00020 
00021 #include <memory>
00022 #include <string>
00023 
00024 #include "math/vector.hpp"
00025 #include "supertux/game_object.hpp"
00026 #include "supertux/statistics.hpp"
00027 #include "video/surface.hpp"
00028 
00029 class Sprite;
00030 
00031 namespace worldmap {
00032 
00033 class LevelTile : public GameObject
00034 {
00035 public:
00036   LevelTile(const std::string& basedir, const Reader& lisp);
00037   virtual ~LevelTile();
00038 
00039   virtual void draw(DrawingContext& context);
00040   virtual void update(float elapsed_time);
00041 
00042 public:
00043   Vector pos;
00044   std::string title;
00045   bool solved;
00046   bool auto_play; 
00048   SpritePtr sprite;
00049 
00051   Statistics statistics;
00052 
00054   std::string extro_script;
00055 
00056 private:
00057   std::string basedir;
00058   bool picture_cached;
00059   Surface* picture;
00060 
00061 private:
00062   LevelTile(const LevelTile&);
00063   LevelTile& operator=(const LevelTile&);
00064 };
00065 
00066 } // namespace worldmap
00067 
00068 #endif
00069 
00070 /* EOF */

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